From 52d844a30380f306fde0f05a3a16222156e62c4c Mon Sep 17 00:00:00 2001 From: Hein Dauven Date: Thu, 19 Dec 2024 10:49:23 +0100 Subject: [PATCH] ci: Allow flexible Rusk binary building in workflow --- .github/workflows/rusk_build.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/rusk_build.yml b/.github/workflows/rusk_build.yml index 3a2a6b16e..cb5e5b942 100644 --- a/.github/workflows/rusk_build.yml +++ b/.github/workflows/rusk_build.yml @@ -7,6 +7,14 @@ on: description: "Git branch, ref, or SHA to checkout" required: true default: "master" + targets_to_build: + description: "Choose targets to build (comma-separated)" + required: true + default: "ubuntu-24.04,macos-15,arm-linux" + features_to_build: + description: "Choose features to build (comma-separated)" + required: true + default: "default,archive" jobs: build_and_publish: @@ -26,8 +34,17 @@ jobs: - os: arm-linux target: linux-arm64 flags: --target=aarch64-unknown-linux-gnu + fail-fast: false steps: + - name: Skip unspecified targets and features + if: | + !contains(${{ github.event.inputs.targets_to_build }}, ${{ matrix.os }}) || + !contains(${{ github.event.inputs.features_to_build }}, ${{ matrix.features }}) + run: | + echo "Skipping build for ${{ matrix.os }} - ${{ matrix.features }}" + exit 1 + - name: Checkout Repository uses: actions/checkout@v4 with: