1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-05 08:11:47 +02:00

Pass the system to build.yml directly

This commit is contained in:
Graham Christensen 2025-03-28 10:56:16 -04:00
parent c648c52392
commit c3b29c1c8c

View file

@ -4,9 +4,11 @@ on:
os: os:
required: true required: true
type: string type: string
system:
required: true
type: string
jobs: jobs:
build: build:
strategy: strategy:
fail-fast: false fail-fast: false
@ -16,13 +18,11 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/nix-installer-action@main
with: with:
flakehub: true determinate: true
- uses: DeterminateSystems/flakehub-cache-action@main - uses: DeterminateSystems/flakehub-cache-action@main
- run: echo "system=$(nix eval --impure --raw --expr 'builtins.currentSystem')" >> "$GITHUB_OUTPUT" - run: nix build .#packages.${{ inputs.system }}.default .#packages.${{ inputs.system }}.binaryTarball --no-link -L
id: system - run: nix build .#packages.${{ inputs.system }}.binaryTarball --out-link tarball
- run: nix build .# .#binaryTarball --no-link -L
- run: nix build .#binaryTarball --out-link tarball
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: ${{ steps.system.outputs.system }} name: ${{ inputs.system }}
path: ./tarball/*.xz path: ./tarball/*.xz