Skip to content

Commit aa8fc28

Browse files
committed
ci: Use --feature-powerset --depth 2 instead of --each-feature
1 parent e029967 commit aa8fc28

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,22 +192,23 @@ jobs:
192192
- run: cargo bench --manifest-path futures-util/Cargo.toml --features=bilock,unstable
193193

194194
features:
195-
name: cargo hack check --each-feature
195+
name: cargo hack check --feature-powerset
196196
runs-on: ubuntu-latest
197197
steps:
198198
- uses: actions/checkout@v2
199199
- name: Install Rust
200200
run: rustup update nightly && rustup default nightly
201201
- run: cargo install cargo-hack
202202
# Check each specified feature works properly
203-
# * `--each-feature` - run for each feature which includes --no-default-features and default features of package
203+
# * `--feature-powerset` - run for the feature powerset of the package
204+
# * `--depth 2` - limit the max number of simultaneous feature flags of `--feature-powerset`
204205
# * `--no-dev-deps` - build without dev-dependencies to avoid https://github.com/rust-lang/cargo/issues/4866
205206
# * `--exclude futures-test` - futures-test cannot be compiled with no-default features
206207
# * `--features unstable` - some features cannot be compiled without this feature
207208
# * `--ignore-unknown-features` - some crates doesn't have 'unstable' feature
208209
- run: |
209210
cargo hack check \
210-
--each-feature --no-dev-deps \
211+
--feature-powerset --depth 2 --no-dev-deps \
211212
--workspace --exclude futures-test \
212213
--features unstable --ignore-unknown-features
213214

0 commit comments

Comments
 (0)