Build each host
All checks were successful
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) Successful in 1s

This commit is contained in:
Tibo De Peuter 2026-02-08 11:57:38 +01:00
parent bc8118b48a
commit 1626a1c311
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
2 changed files with 35 additions and 0 deletions

34
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,34 @@
name: "Build"
on:
pull_request:
jobs:
determine_hosts:
name: "Determining hosts to build"
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- uses: actions/checkout@v5
- uses: https://github.com/cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: "List hosts"
id: hosts
run: nix eval .#nixosConfigurations --apply builtins.attrNames --json
outputs:
hosts: ${{ steps.hosts.outputs }}
build:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
needs: determine_hosts
strategy:
matrix:
hostname: ${{ fromJSON(needs.determine_hosts.outputs.hosts) }}
steps:
- run: echo "${{ matrix.hostname }}"

1
.gitignore vendored
View file

@ -1 +1,2 @@
.idea
result