From 4a1219c8023a074ecc6526bbedb89f299a545b69 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Fri, 26 Sep 2025 08:11:29 -0600 Subject: [PATCH] CI: use `cargo hack` to test `--feature-powerset` --- .github/workflows/hybrid-array.yml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/hybrid-array.yml b/.github/workflows/hybrid-array.yml index ab907d1..f35de1b 100644 --- a/.github/workflows/hybrid-array.yml +++ b/.github/workflows/hybrid-array.yml @@ -36,14 +36,9 @@ jobs: with: toolchain: ${{ matrix.rust }} targets: ${{ matrix.target }} - - run: cargo build --no-default-features --target ${{ matrix.target }} - - run: cargo build --no-default-features --target ${{ matrix.target }} --features alloc - - run: cargo build --no-default-features --target ${{ matrix.target }} --features bytemuck - - run: cargo build --no-default-features --target ${{ matrix.target }} --features extra-sizes - - run: cargo build --no-default-features --target ${{ matrix.target }} --features serde - - run: cargo build --no-default-features --target ${{ matrix.target }} --features subtle - - run: cargo build --no-default-features --target ${{ matrix.target }} --features zeroize - - run: cargo build --no-default-features --target ${{ matrix.target }} --all-features + - uses: RustCrypto/actions/cargo-hack-install@master + - run: cargo hack build --target ${{ matrix.target }} --feature-powerset --optional-deps bytemuck,serde,subtle,zeroize + - run: cargo build --all-features --release careful: runs-on: ubuntu-latest @@ -110,10 +105,6 @@ jobs: - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.toolchain }} - - run: cargo test - - run: cargo test --features alloc - - run: cargo test --features bytemuck - - run: cargo test --features extra-sizes - - run: cargo test --features serde - - run: cargo test --features zeroize - - run: cargo test --all-features + - uses: RustCrypto/actions/cargo-hack-install@master + - run: cargo hack test --feature-powerset --optional-deps bytemuck,serde,subtle,zeroize + - run: cargo test --all-features --release