Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
jobs:
build:
strategy:
# Don't cancel other matrix jobs if one fails
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
toolchain: [stable, beta, nightly]
Expand All @@ -25,15 +27,18 @@ jobs:
run: cargo clippy --all-targets
- name: Format
run: cargo fmt -- --check
- name: Build with defeault features
run: cargo build --verbose
- name: Check release build on Rust ${{ matrix.toolchain }}
run: cargo check --release --verbose --color always
# Check default features, all features, no features, some features.
- name: Build
run: |
cargo build --verbose
cargo build --verbose --all-features
cargo build --verbose --no-default-features
cargo build --verbose --no-default-features --features database,filter-control
- name: Unit test
run: cargo test --verbose --lib
- name: Doc test
run: cargo test --verbose --doc
# Check that library code can be compiled with MSRV (1.63.0).
# Check that library code can be compiled with the MSRV (1.63.0) compiler.
msrv:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ rusqlite = { version = "0.31.0", features = ["bundled"], optional = true }

[features]
default = ["database"]
database = ["rusqlite"]
database = ["dep:rusqlite"]
filter-control = []

[dev-dependencies]
Expand Down
Loading