Build each host
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 1s

This commit is contained in:
Tibo De Peuter 2026-02-08 11:58:43 +01:00
parent 90bd5ed66b
commit 4103c488b3
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -16,7 +16,8 @@ jobs:
nix_path: nixpkgs=channel:nixos-unstable
- name: "List hosts"
id: hosts
run: nix eval .#nixosConfigurations --apply builtins.attrNames --json
run: |
nix eval .#nixosConfigurations --apply builtins.attrNames --json
outputs:
hosts: ${{ steps.hosts.outputs }}
@ -30,5 +31,11 @@ jobs:
hostname: ${{ fromJSON(needs.determine_hosts.outputs.hosts) }}
steps:
- run: echo "${{ matrix.hostname }}"
- name: "Define host"
env:
hostname: ${{ matrix.hostname }}
run: |
echo "${hostname}"
- run: |
nixos-rebuild build --flake ".#${hostname}"