Skip to content

Commit

Permalink
fix check-features.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Nov 3, 2020
1 parent 8288294 commit a5b688b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ci/check-features.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@ if [[ "$RUST_VERSION" != "nightly"* ]]; then
# * `--no-dev-deps` - build without dev-dependencies to avoid https://github.com/rust-lang/cargo/issues/4866
# * `--exclude benchmarks` - benchmarks doesn't published.
# * `--skip nightly` - skip `nightly` feature as requires nightly compilers.
cargo hack check --all --feature-powerset --no-dev-deps --exclude benchmarks --skip nightly
cargo hack check --all --feature-powerset --no-dev-deps --exclude benchmarks --skip nightly --exclude-all-features
else
# On nightly, all feature combinations should work.
cargo hack check --all --feature-powerset --no-dev-deps --exclude benchmarks
# TODO(taiki-e): if https://github.com/taiki-e/cargo-hack/issues/42 merged, remove this.
cargo hack check --all --all-features --no-dev-deps --exclude benchmarks

# Check for no_std environment.
cargo hack check --all --feature-powerset --no-dev-deps --exclude benchmarks --target thumbv7m-none-eabi --skip std,default
cargo hack check --all --feature-powerset --no-dev-deps --exclude benchmarks --target thumbv7m-none-eabi --skip std,default --exclude-all-features
# * `--features nightly` is required for enable `cfg_target_has_atomic`.
# * `--ignore-unknown-features` - some crates doesn't have 'nightly' feature
cargo hack check --all --feature-powerset --no-dev-deps --exclude benchmarks --target thumbv6m-none-eabi --skip std,default --features nightly --ignore-unknown-features
cargo hack check --all --feature-powerset --no-dev-deps --exclude benchmarks --target thumbv6m-none-eabi --skip std,default --exclude-all-features --features nightly --ignore-unknown-features
fi

0 comments on commit a5b688b

Please sign in to comment.