From d3f880649552314868373532e78f2eb439093e62 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 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rusk_build.yml b/.github/workflows/rusk_build.yml index 3a2a6b16e..a31be0075 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" + runner: + description: "Choose runner target to build against (JSON array)" + required: true + default: "[\"ubuntu-24.04\", \"macos-15\", \"arm-linux\"]" + features: + description: "Choose features to build (JSON array)" + required: true + default: "[\"default\", \"archive\"]" jobs: build_and_publish: @@ -14,9 +22,9 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-24.04, macos-15, arm-linux] + os: ${{ fromJson(github.event.inputs.runner) }} + features: ${{ fromJson(github.event.inputs.features) }} compiler: [cargo] - features: [default, archive] include: - os: ubuntu-24.04 target: linux-x64 @@ -26,6 +34,7 @@ jobs: - os: arm-linux target: linux-arm64 flags: --target=aarch64-unknown-linux-gnu + fail-fast: false steps: - name: Checkout Repository