1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 06:01:48 +02:00

Move down the if from build workflows

This commit is contained in:
Graham Christensen 2025-03-28 11:22:58 -04:00
parent feba05b18d
commit 2315b54f91
2 changed files with 7 additions and 2 deletions

View file

@ -7,9 +7,14 @@ on:
system: system:
required: true required: true
type: string type: string
if:
required: false
default: true
type: boolean
jobs: jobs:
build: build:
if: ${{ inputs.if }}
strategy: strategy:
fail-fast: false fail-fast: false
runs-on: ${{ inputs.os }} runs-on: ${{ inputs.os }}

View file

@ -32,16 +32,16 @@ jobs:
system: x86_64-linux system: x86_64-linux
build_aarch64-linux: build_aarch64-linux:
if: github.event_name == 'merge_group'
uses: ./.github/workflows/build.yml uses: ./.github/workflows/build.yml
with: with:
if: ${{ github.event_name == 'merge_group' }}
os: blacksmith-32vcpu-ubuntu-2204-arm os: blacksmith-32vcpu-ubuntu-2204-arm
system: aarch64-linux system: aarch64-linux
build_x86_64-darwin: build_x86_64-darwin:
if: github.event_name == 'merge_group'
uses: ./.github/workflows/build.yml uses: ./.github/workflows/build.yml
with: with:
if: ${{ github.event_name == 'merge_group' }}
os: namespace-profile-mac-m2-12c28g os: namespace-profile-mac-m2-12c28g
system: x86_64-darwin system: x86_64-darwin