mirror of
https://github.com/DeterminateSystems/ci.git
synced 2025-06-16 14:23:19 +02:00
Merge pull request #27 from DeterminateSystems/flake-iter-input
Allow specifying a flake-iter flakeref
This commit is contained in:
commit
b8e4233ffa
1 changed files with 10 additions and 2 deletions
12
.github/workflows/workflow.yml
vendored
12
.github/workflows/workflow.yml
vendored
|
@ -30,6 +30,12 @@ on:
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: true
|
||||||
type: boolean
|
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:
|
runner-map:
|
||||||
description: |
|
description: |
|
||||||
A custom mapping of [Nix system types](https://zero-to-nix.com/concepts/system-specificity) to desired Actions runners
|
A custom mapping of [Nix system types](https://zero-to-nix.com/concepts/system-specificity) to desired Actions runners
|
||||||
|
@ -102,9 +108,10 @@ jobs:
|
||||||
id: inventory
|
id: inventory
|
||||||
env:
|
env:
|
||||||
FLAKE_ITER_RUNNER_MAP: ${{ toJson(fromJson(inputs.runner-map)) }}
|
FLAKE_ITER_RUNNER_MAP: ${{ toJson(fromJson(inputs.runner-map)) }}
|
||||||
|
FLAKE_ITER_FLAKEREF: ${{ inputs.flake-iter-flakeref }}
|
||||||
working-directory: ${{ inputs.directory }}
|
working-directory: ${{ inputs.directory }}
|
||||||
run: |
|
run: |
|
||||||
nix run "https://flakehub.com/f/DeterminateSystems/flake-iter/*" -- systems
|
nix run "$FLAKE_ITER_FLAKEREF" -- systems
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.systems.runner }}
|
runs-on: ${{ matrix.systems.runner }}
|
||||||
needs: inventory
|
needs: inventory
|
||||||
|
@ -130,8 +137,9 @@ jobs:
|
||||||
- name: Build for ${{ matrix.systems.nix-system }}
|
- name: Build for ${{ matrix.systems.nix-system }}
|
||||||
env:
|
env:
|
||||||
FLAKE_ITER_NIX_SYSTEM: ${{ matrix.systems.nix-system }}
|
FLAKE_ITER_NIX_SYSTEM: ${{ matrix.systems.nix-system }}
|
||||||
|
FLAKE_ITER_FLAKEREF: ${{ inputs.flake-iter-flakeref }}
|
||||||
working-directory: ${{ inputs.directory }}
|
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:
|
success:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Add table
Reference in a new issue