@@ -39,16 +39,15 @@ jobs:
3939 with :
4040 toolchain : ${{ matrix.rust }}
4141 targets : ${{ matrix.target }}
42- - run : cargo build --target ${{ matrix.target }}
43- - run : cargo build --target ${{ matrix.target }} --features zeroize
42+ - uses : RustCrypto/actions/ cargo-hack-install@master
43+ - run : cargo hack build --feature-powerset -- target ${{ matrix.target }}
4444
4545 minimal-versions :
46- if : false # TODO: temp disabled due to unpublished prerelease dependencies
4746 uses : RustCrypto/actions/.github/workflows/minimal-versions.yml@master
4847 with :
4948 working-directory : ${{ github.workflow }}
5049
51- # Tests for runtime AVX2 detection
50+ # Tests for runtime CPU feature detection
5251 autodetect :
5352 runs-on : ubuntu-latest
5453 strategy :
@@ -74,11 +73,10 @@ jobs:
7473 with :
7574 toolchain : ${{ matrix.rust }}
7675 targets : ${{ matrix.target }}
76+ - uses : RustCrypto/actions/cargo-hack-install@master
7777 - run : ${{ matrix.deps }}
7878 - run : cargo check --target ${{ matrix.target }} --all-features
79- - run : cargo test --target ${{ matrix.target }}
80- - run : cargo test --target ${{ matrix.target }} --features zeroize
81- - run : cargo test --target ${{ matrix.target }} --all-features
79+ - run : cargo hack test --feature-powerset --target ${{ matrix.target }}
8280
8381 # Tests for the AVX2 backend
8482 avx2 :
@@ -108,11 +106,10 @@ jobs:
108106 with :
109107 toolchain : ${{ matrix.rust }}
110108 targets : ${{ matrix.target }}
109+ - uses : RustCrypto/actions/cargo-hack-install@master
111110 - run : ${{ matrix.deps }}
112111 - run : cargo check --target ${{ matrix.target }} --all-features
113- - run : cargo test --target ${{ matrix.target }}
114- - run : cargo test --target ${{ matrix.target }} --features zeroize
115- - run : cargo test --target ${{ matrix.target }} --all-features
112+ - run : cargo hack test --feature-powerset --target ${{ matrix.target }}
116113
117114 # Tests for the SSE2 backend
118115 sse2 :
@@ -142,11 +139,10 @@ jobs:
142139 with :
143140 toolchain : ${{ matrix.rust }}
144141 targets : ${{ matrix.target }}
142+ - uses : RustCrypto/actions/cargo-hack-install@master
145143 - run : ${{ matrix.deps }}
146144 - run : cargo check --target ${{ matrix.target }} --all-features
147- - run : cargo test --target ${{ matrix.target }}
148- - run : cargo test --target ${{ matrix.target }} --features zeroize
149- - run : cargo test --target ${{ matrix.target }} --all-features
145+ - run : cargo hack test --feature-powerset --target ${{ matrix.target }}
150146
151147 # Tests for the portable software backend
152148 soft :
@@ -176,11 +172,10 @@ jobs:
176172 with :
177173 toolchain : ${{ matrix.rust }}
178174 targets : ${{ matrix.target }}
175+ - uses : RustCrypto/actions/cargo-hack-install@master
179176 - run : ${{ matrix.deps }}
180177 - run : cargo check --target ${{ matrix.target }} --all-features
181- - run : cargo test --target ${{ matrix.target }}
182- - run : cargo test --target ${{ matrix.target }} --features zeroize
183- - run : cargo test --target ${{ matrix.target }} --all-features
178+ - run : cargo hack test --feature-powerset --target ${{ matrix.target }}
184179
185180 # Cross-compiled tests
186181 cross :
0 commit comments