Skip to content

Commit

Permalink
Use cargo-all-features for all feature sets (incl. no features)
Browse files Browse the repository at this point in the history
  • Loading branch information
echeran committed Jul 8, 2020
1 parent dbffa07 commit 21a9528
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
feature-set: [ "", "--all-features" ] # no feature options ("") uses default.
# --no-default-features is not allowed
# at root of virtual workspace for
# both build and test.


runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -45,12 +41,16 @@ jobs:
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.toml') }}

## Build and run steps

# build / test against all subsets of features, including null set (no features)
- name: Install cargo-all-features
run: cargo install cargo-all-features

- name: Build
run: cargo build ${{ matrix.feature-set }} --verbose
run: cargo build-all-features --verbose

- name: Test
run: cargo test ${{ matrix.feature-set }} --verbose
run: cargo test-all-features --verbose

format:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 21a9528

Please sign in to comment.