mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 16:39:07 +01:00
workflows/check-deploy: Improve naming of jobs
This commit is contained in:
parent
0854f93136
commit
fbd7bd2abd
1 changed files with 5 additions and 5 deletions
10
.github/workflows/check-deploy.yml
vendored
10
.github/workflows/check-deploy.yml
vendored
|
|
@ -4,7 +4,7 @@ on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
jobs:
|
jobs:
|
||||||
generate-matrix:
|
parse-flake:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
checks: ${{ steps.checks.outputs.checks }}
|
checks: ${{ steps.checks.outputs.checks }}
|
||||||
|
|
@ -23,12 +23,12 @@ jobs:
|
||||||
hosts=$(nix flake show --json | jq -c '.nixosConfigurations | keys')
|
hosts=$(nix flake show --json | jq -c '.nixosConfigurations | keys')
|
||||||
printf "hosts=%s" "$hosts" >> "$GITHUB_OUTPUT"
|
printf "hosts=%s" "$hosts" >> "$GITHUB_OUTPUT"
|
||||||
build-check:
|
build-check:
|
||||||
needs: generate-matrix
|
needs: parse-flake
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
check: ${{ fromJson(needs.generate-matrix.outputs.checks) }}
|
check: ${{ fromJson(needs.parse-flake.outputs.checks) }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: cachix/install-nix-action@v31
|
- uses: cachix/install-nix-action@v31
|
||||||
|
|
@ -41,12 +41,12 @@ jobs:
|
||||||
useDaemon: false
|
useDaemon: false
|
||||||
- run: nix build .#checks.x86_64-linux.${{ matrix.check }} --print-build-logs
|
- run: nix build .#checks.x86_64-linux.${{ matrix.check }} --print-build-logs
|
||||||
build-host:
|
build-host:
|
||||||
needs: generate-matrix
|
needs: parse-flake
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
host: ${{ fromJson(needs.generate-matrix.outputs.hosts) }}
|
host: ${{ fromJson(needs.parse-flake.outputs.hosts) }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: cachix/install-nix-action@v31
|
- uses: cachix/install-nix-action@v31
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue