Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Allow flexible Rusk binary building in workflow #3231

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/workflows/rusk_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,23 @@ 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:
name: Build Rusk binaries for ${{ matrix.os }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-24.04, macos-15, arm-linux]
features: ${{ fromJson(github.event.inputs.features) }}
compiler: [cargo]
features: [default, archive]
include:
- os: ubuntu-24.04
target: linux-x64
Expand All @@ -26,8 +33,17 @@ jobs:
- os: arm-linux
target: linux-arm64
flags: --target=aarch64-unknown-linux-gnu
fail-fast: false

steps:
- name: Skip Non-matching Configurations
if: |
!contains(fromJson(github.event.inputs.runner), matrix.runner) ||
!contains(fromJson(github.event.inputs.features), matrix.features)
run: |
echo "Skipping build for ${{ matrix.runner }} - ${{ matrix.features }}"
exit 0

- name: Checkout Repository
uses: actions/checkout@v4
with:
Expand Down
Loading