From 6ee137ab2621aae2131851a9d976b71e7e939922 Mon Sep 17 00:00:00 2001 From: stringhandler Date: Tue, 25 Aug 2026 14:17:44 +0200 Subject: [PATCH] ci: add cargo hack to test all features Adds cargo hack to the Github job to check that all combinations of the features compile. --- .github/workflows/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 824cf5b2..96052215 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -98,6 +98,25 @@ jobs: echo "No default features" && cargo test --locked --no-default-features echo "All features" && cargo test --locked --all-features + feature_matrix: + name: Feature Matrix (cargo hack) + runs-on: ubuntu-latest + steps: + - name: Checkout Crate + uses: actions/checkout@v4 + - name: Checkout Toolchain + uses: dtolnay/rust-toolchain@stable + - name: Install cargo-hack + run: cargo install cargo-hack --locked + - name: Set dependencies + run: cp Cargo-recent.lock Cargo.lock + - name: Running cargo hack over the feature powerset + env: + RUSTFLAGS: "-D warnings" + run: | + cargo hack check --locked --workspace --exclude simplicity-fuzz \ + --all-targets --feature-powerset + ignored: name: Ignored Tests runs-on: ubuntu-latest