mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-25 19:01:38 +08:00
Add time back to modern-full feature (#969)
See https://github.com/time-rs/time/issues/292 Update CI build file accordingly
This commit is contained in:
parent
840a6f3789
commit
ee7f7b89d5
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
@ -48,8 +48,8 @@ jobs:
|
|||||||
# TODO: clang is installed on these -- but `bindgen` can't find it...
|
# TODO: clang is installed on these -- but `bindgen` can't find it...
|
||||||
if: matrix.os != 'windows-latest'
|
if: matrix.os != 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
cargo test --features 'bundled-full session buildtime_bindgen time' --all-targets --workspace --verbose
|
cargo test --features 'bundled-full session buildtime_bindgen' --all-targets --workspace --verbose
|
||||||
cargo test --features 'bundled-full session buildtime_bindgen time' --doc --workspace --verbose
|
cargo test --features 'bundled-full session buildtime_bindgen' --doc --workspace --verbose
|
||||||
|
|
||||||
- name: Static build
|
- name: Static build
|
||||||
# Do we expect this to work / should we test with gnu toolchain?
|
# Do we expect this to work / should we test with gnu toolchain?
|
||||||
@ -91,8 +91,8 @@ jobs:
|
|||||||
- name: Test Features
|
- name: Test Features
|
||||||
if: matrix.os != 'windows-latest'
|
if: matrix.os != 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
cargo test --features 'bundled-full session buildtime_bindgen time' --all-targets --workspace --verbose
|
cargo test --features 'bundled-full session buildtime_bindgen' --all-targets --workspace --verbose
|
||||||
cargo test --features 'bundled-full session buildtime_bindgen time' --doc --workspace --verbose
|
cargo test --features 'bundled-full session buildtime_bindgen' --doc --workspace --verbose
|
||||||
|
|
||||||
winsqlite3:
|
winsqlite3:
|
||||||
name: Test with winsqlite3
|
name: Test with winsqlite3
|
||||||
@ -137,7 +137,7 @@ jobs:
|
|||||||
# leak sanitization, but we don't care about backtraces here, so long
|
# leak sanitization, but we don't care about backtraces here, so long
|
||||||
# as the other tests have them.
|
# as the other tests have them.
|
||||||
RUST_BACKTRACE: "0"
|
RUST_BACKTRACE: "0"
|
||||||
run: cargo -Z build-std test --features 'bundled-full session buildtime_bindgen time with-asan' --target x86_64-unknown-linux-gnu
|
run: cargo -Z build-std test --features 'bundled-full session buildtime_bindgen with-asan' --target x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
# Ensure clippy doesn't complain.
|
# Ensure clippy doesn't complain.
|
||||||
clippy:
|
clippy:
|
||||||
@ -150,7 +150,7 @@ jobs:
|
|||||||
components: clippy
|
components: clippy
|
||||||
- run: cargo clippy --all-targets --workspace --features bundled -- -D warnings
|
- run: cargo clippy --all-targets --workspace --features bundled -- -D warnings
|
||||||
# Clippy with all non-conflicting features
|
# Clippy with all non-conflicting features
|
||||||
- run: cargo clippy --all-targets --workspace --features 'bundled-full session buildtime_bindgen time' -- -D warnings
|
- run: cargo clippy --all-targets --workspace --features 'bundled-full session buildtime_bindgen' -- -D warnings
|
||||||
|
|
||||||
# Ensure patch is formatted.
|
# Ensure patch is formatted.
|
||||||
fmt:
|
fmt:
|
||||||
@ -174,7 +174,7 @@ jobs:
|
|||||||
rust-version: nightly
|
rust-version: nightly
|
||||||
# Need to use `cargo rustdoc` to actually get it to respect -D
|
# Need to use `cargo rustdoc` to actually get it to respect -D
|
||||||
# warnings... Note: this also requires nightly.
|
# warnings... Note: this also requires nightly.
|
||||||
- run: cargo rustdoc --features 'bundled-full session buildtime_bindgen time' -- -D warnings
|
- run: cargo rustdoc --features 'bundled-full session buildtime_bindgen' -- -D warnings
|
||||||
|
|
||||||
codecov:
|
codecov:
|
||||||
name: Generate code coverage
|
name: Generate code coverage
|
||||||
@ -185,8 +185,6 @@ jobs:
|
|||||||
- name: Run cargo-tarpaulin
|
- name: Run cargo-tarpaulin
|
||||||
uses: actions-rs/tarpaulin@v0.1
|
uses: actions-rs/tarpaulin@v0.1
|
||||||
with:
|
with:
|
||||||
# Intentionally omit time feature until we're on time 0.3, at which
|
|
||||||
# point it should be added to `bundled-full`.
|
|
||||||
args: '--features "bundled-full session buildtime_bindgen"'
|
args: '--features "bundled-full session buildtime_bindgen"'
|
||||||
|
|
||||||
- name: Upload to codecov.io
|
- name: Upload to codecov.io
|
||||||
|
@ -85,9 +85,7 @@ modern-full = [
|
|||||||
"load_extension",
|
"load_extension",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"series",
|
"series",
|
||||||
# time v0.2 does not work with tarpaulin v0.14.0. See time-rs/time#265.
|
"time",
|
||||||
# Re-enable when time v0.3 is released with the fix.
|
|
||||||
# "time",
|
|
||||||
"trace",
|
"trace",
|
||||||
"unlock_notify",
|
"unlock_notify",
|
||||||
"url",
|
"url",
|
||||||
|
Loading…
Reference in New Issue
Block a user