Skip to content

Commit 4a1219c

Browse files
committed
CI: use cargo hack to test --feature-powerset
1 parent ef365c3 commit 4a1219c

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

.github/workflows/hybrid-array.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,9 @@ jobs:
3636
with:
3737
toolchain: ${{ matrix.rust }}
3838
targets: ${{ matrix.target }}
39-
- run: cargo build --no-default-features --target ${{ matrix.target }}
40-
- run: cargo build --no-default-features --target ${{ matrix.target }} --features alloc
41-
- run: cargo build --no-default-features --target ${{ matrix.target }} --features bytemuck
42-
- run: cargo build --no-default-features --target ${{ matrix.target }} --features extra-sizes
43-
- run: cargo build --no-default-features --target ${{ matrix.target }} --features serde
44-
- run: cargo build --no-default-features --target ${{ matrix.target }} --features subtle
45-
- run: cargo build --no-default-features --target ${{ matrix.target }} --features zeroize
46-
- run: cargo build --no-default-features --target ${{ matrix.target }} --all-features
39+
- uses: RustCrypto/actions/cargo-hack-install@master
40+
- run: cargo hack build --target ${{ matrix.target }} --feature-powerset --optional-deps bytemuck,serde,subtle,zeroize
41+
- run: cargo build --all-features --release
4742

4843
careful:
4944
runs-on: ubuntu-latest
@@ -110,10 +105,6 @@ jobs:
110105
- uses: dtolnay/rust-toolchain@master
111106
with:
112107
toolchain: ${{ matrix.toolchain }}
113-
- run: cargo test
114-
- run: cargo test --features alloc
115-
- run: cargo test --features bytemuck
116-
- run: cargo test --features extra-sizes
117-
- run: cargo test --features serde
118-
- run: cargo test --features zeroize
119-
- run: cargo test --all-features
108+
- uses: RustCrypto/actions/cargo-hack-install@master
109+
- run: cargo hack test --feature-powerset --optional-deps bytemuck,serde,subtle,zeroize
110+
- run: cargo test --all-features --release

0 commit comments

Comments
 (0)