Skip to content

Commit a3bc7fb

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

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/hybrid-array.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,8 @@ 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
4741

4842
careful:
4943
runs-on: ubuntu-latest
@@ -110,10 +104,5 @@ jobs:
110104
- uses: dtolnay/rust-toolchain@master
111105
with:
112106
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
107+
- uses: RustCrypto/actions/cargo-hack-install@master
108+
- run: cargo hack test --feature-powerset

0 commit comments

Comments
 (0)