Skip to content

Commit

Permalink
Use cargo hack --each-feature instead of --feature-powerset
Browse files Browse the repository at this point in the history
The powerset of all features has exploded in the number of iterations
that need to run. This would slow down development, and quickly consume
our ci usage allowance on the free github org plan
  • Loading branch information
spencewenski committed Mar 31, 2024
1 parent 1a0b334 commit 436aad2
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,30 @@ env:
CARGO_TERM_COLOR: always

jobs:
roadster_feature_powerset:
name: Feature powerset
roadster_each_feature:
name: Each feature
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@cargo-hack
- name: Test
run: cargo hack test --no-fail-fast --feature-powerset --workspace
run: cargo hack test --no-fail-fast --each-feature --workspace
- name: Check
run: cargo hack check --feature-powerset --no-dev-deps --workspace
run: cargo hack check --each-feature --no-dev-deps --workspace
- name: Clippy
run: cargo hack clippy --workspace --all-targets --feature-powerset -- -D warnings
run: cargo hack clippy --workspace --all-targets --each-feature -- -D warnings

roadster_all_features:
name: All features
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test
run: cargo test --no-fail-fast --all-features --workspace
- name: Check
run: cargo check --all-features --workspace
- name: Clippy
run: cargo clippy --workspace --all-targets --all-features -- -D warnings

check_formatting:
name: Formatting
Expand Down

0 comments on commit 436aad2

Please sign in to comment.