Skip to content

Commit

Permalink
Don't use all features when compiling
Browse files Browse the repository at this point in the history
This enables the 'nightly' feature which requires nightly, so I'm
turning this off in CI. We can revisit if there are some options we want
to CI with.
  • Loading branch information
rkuris committed Jun 13, 2024
1 parent cf88082 commit 52a1c3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
${{ runner.os }}-deps-${{ hashFiles('**/Cargo.toml') }}-
${{ runner.os }}-deps-
- name: Check
run: cargo check --workspace --tests --examples --benches --all-features
run: cargo check --workspace --tests --examples --benches
- name: Build
run: cargo build --workspace --tests --examples --benches --all-features
run: cargo build --workspace --tests --examples --benches
# Always update the cache
- name: Cleanup
run: |
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
- name: Format
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy --tests --examples --benches --all-features -- -D warnings
run: cargo clippy --tests --examples --benches -- -D warnings

test:
needs: build
Expand All @@ -122,7 +122,7 @@ jobs:
target/
key: ${{ needs.build.outputs.cache-key }}
- name: Run tests
run: cargo test --all-features --verbose
run: cargo test --verbose

# TODO uncomment this code to run examples in CI
# examples:
Expand Down
1 change: 1 addition & 0 deletions firewood/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ test-case = "3.3.1"
integer-encoding = "4.0.0"

[features]
default = []
logger = ["log"]
nightly = []

Expand Down

0 comments on commit 52a1c3c

Please sign in to comment.