|
36 | 36 | with:
|
37 | 37 | toolchain: ${{ matrix.rust }}
|
38 | 38 | 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 |
47 | 42 |
|
48 | 43 | careful:
|
49 | 44 | runs-on: ubuntu-latest
|
@@ -110,10 +105,6 @@ jobs:
|
110 | 105 | - uses: dtolnay/rust-toolchain@master
|
111 | 106 | with:
|
112 | 107 | 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