Skip to content

Commit

Permalink
Always group ancilliary features in tests (#206)
Browse files Browse the repository at this point in the history
* Always group ancilliary features in tests

* fix
  • Loading branch information
leighmcculloch authored Dec 1, 2022
1 parent bb342f0 commit e39e4aa
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

env:
RUSTFLAGS: -Dwarnings -Dclippy::all -Dclippy::pedantic
CARGO_HACK_ARGS: --feature-powerset --exclude-features default --group-features base64,serde,arbitrary,hex

jobs:

Expand Down Expand Up @@ -62,10 +63,6 @@ jobs:
with:
name: cargo-hack
version: 0.5.16
- if: "github.ref_protected"
run: echo 'CARGO_HACK_ARGS=--feature-powerset' >> $GITHUB_ENV
- if: "!github.ref_protected"
run: echo 'CARGO_HACK_ARGS=--feature-powerset --exclude-features default --group-features base64,serde,arbitrary' >> $GITHUB_ENV
- run: cargo hack clippy $CARGO_HACK_ARGS --target ${{ matrix.sys.target }} --all-targets

test:
Expand All @@ -90,10 +87,6 @@ jobs:
with:
name: cargo-hack
version: 0.5.16
- if: "github.ref_protected"
run: echo 'CARGO_HACK_ARGS=--feature-powerset' >> $GITHUB_ENV
- if: "!github.ref_protected"
run: echo 'CARGO_HACK_ARGS=--feature-powerset --exclude-features default --group-features base64,serde,arbitrary' >> $GITHUB_ENV
- run: cargo hack test $CARGO_HACK_ARGS

publish-dry-run:
Expand All @@ -109,3 +102,4 @@ jobs:
with:
runs-on: ${{ matrix.sys.os }}
target: ${{ matrix.sys.target }}
cargo-hack-feature-options: --feature-powerset --exclude-features default --group-features base64,serde,arbitrary,hex

0 comments on commit e39e4aa

Please sign in to comment.