From 9ae9c572609706402e5316508e87903d05a2e5ce Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sat, 19 Oct 2024 17:45:40 -0600 Subject: [PATCH] CI: test all features in isolation If it gets any more complex than this, we should switch to `cargo hack` --- .github/workflows/hybrid-array.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/hybrid-array.yml b/.github/workflows/hybrid-array.yml index b40faba..9bf10ca 100644 --- a/.github/workflows/hybrid-array.yml +++ b/.github/workflows/hybrid-array.yml @@ -37,8 +37,11 @@ jobs: 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 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 zeroize + - run: cargo build --no-default-features --target ${{ matrix.target }} --all-features careful: runs-on: ubuntu-latest @@ -106,5 +109,8 @@ jobs: with: toolchain: ${{ matrix.toolchain }} - run: cargo test + - 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