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:
parent
feba05b18d
commit
2315b54f91
2 changed files with 7 additions and 2 deletions
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -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 }}
|
||||||
|
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue