More specific hostnames
Some checks failed
Test / tests (push) Has been skipped
Build / Determining hosts to build (pull_request) Successful in 9s
Test / tests (pull_request) Has been skipped
Build / build (pull_request) Failing after 7s

This commit is contained in:
Tibo De Peuter 2026-02-08 12:04:02 +01:00
parent 60fe8110b1
commit bfbe4204e7
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -17,7 +17,8 @@ jobs:
- name: "List hosts"
id: hosts
run: |
nix eval .#nixosConfigurations --apply builtins.attrNames --json
hosts="$(nix eval .#nixosConfigurations --apply builtins.attrNames --json)"
echo "hostnames=${hosts}" >> "$GITHUB_OUTPUT"
outputs:
hosts: ${{ steps.hosts.outputs }}
@ -28,7 +29,7 @@ jobs:
needs: determine_hosts
strategy:
matrix:
hostname: ${{ fromJSON(needs.determine_hosts.outputs.hosts) }}
hostname: ${{ fromJSON(needs.determine_hosts.outputs.hosts.hostnames) }}
steps:
- uses: actions/checkout@v5
@ -39,7 +40,7 @@ jobs:
env:
hostname: ${{ matrix.hostname }}
run: |
echo "${hostname}"
echo "Hostname: ${hostname}"
- run: |
nixos-rebuild build --flake ".#${hostname}"