From b10014acf0fbcbfe614b110351b2778a6a1af7b4 Mon Sep 17 00:00:00 2001 From: Paul Lietar Date: Thu, 24 Oct 2024 13:48:44 +0100 Subject: [PATCH] CI --- .github/workflows/test.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d9eb437..8192091 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -10,5 +10,11 @@ jobs: - uses: actions/checkout@v4 - uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/magic-nix-cache-action@main - - run: nix build -L + - run: | + hostnames=$(nix eval --raw ".#nixosConfigurations" --apply 'x: builtins.concatStringsSep " " (builtins.attrNames x)') + for h in $hostnames; do + attribute="nixosConfigurations.$h.config.system.build.toplevel" + nix build -L $attribute --no-out-link + done + - run: nix flake check -L