Skip to content

Commit

Permalink
ci: Allow flexible Rusk binary building in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
HDauven committed Dec 19, 2024
1 parent 71a27dd commit 47070fd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/rusk_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -26,8 +34,19 @@ 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 "build targets: ${{ github.event.inputs.targets_to_build }}"
echo "build features: ${{ github.event.inputs.features_to_build }}"
echo "Skipping build for ${{ matrix.os }} - ${{ matrix.features }}"
exit 1
- name: Checkout Repository
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 47070fd

Please sign in to comment.