Skip to content
Merged
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
12 changes: 10 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ on:
required: false
default: true
type: boolean
flake-iter-flakeref:
description: |
Flake reference to use for the flake-iter process. Useful for pinning to specific versions should standards require it. Defaults to the latest release available on FlakeHub.
type: string
required: false
default: https://flakehub.com/f/DeterminateSystems/flake-iter/*
runner-map:
description: |
A custom mapping of [Nix system types](https://zero-to-nix.com/concepts/system-specificity) to desired Actions runners
Expand Down Expand Up @@ -102,9 +108,10 @@ jobs:
id: inventory
env:
FLAKE_ITER_RUNNER_MAP: ${{ toJson(fromJson(inputs.runner-map)) }}
FLAKE_ITER_FLAKEREF: ${{ inputs.flake-iter-flakeref }}
working-directory: ${{ inputs.directory }}
run: |
nix run "https://flakehub.com/f/DeterminateSystems/flake-iter/*" -- systems
nix run "$FLAKE_ITER_FLAKEREF" -- systems
build:
runs-on: ${{ matrix.systems.runner }}
needs: inventory
Expand All @@ -130,8 +137,9 @@ jobs:
- name: Build for ${{ matrix.systems.nix-system }}
env:
FLAKE_ITER_NIX_SYSTEM: ${{ matrix.systems.nix-system }}
FLAKE_ITER_FLAKEREF: ${{ inputs.flake-iter-flakeref }}
working-directory: ${{ inputs.directory }}
run: nix run 'https://flakehub.com/f/DeterminateSystems/flake-iter/*' -- --verbose build
run: nix run "$FLAKE_ITER_FLAKEREF" -- --verbose build

success:
runs-on: ubuntu-latest
Expand Down