diff --git a/.github/workflows/cachix.yml b/.github/workflows/cachix.yml index 711157eb..3109b26e 100644 --- a/.github/workflows/cachix.yml +++ b/.github/workflows/cachix.yml @@ -7,6 +7,13 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + host: + - kharbranth + - kholinar + - lasting-integrity + - urithiru steps: - uses: actions/checkout@v3 - uses: cachix/install-nix-action@v18 @@ -19,11 +26,5 @@ jobs: extraPullNames: "nix-community,accentor" authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' skipPush: true - - run: nix build -L --no-link .#nixosConfigurations.lasting-integrity.config.system.build.toplevel - - run: nix eval --json ".#nixosConfigurations.lasting-integrity.config.system.build.toplevel.outPath" | sed 's/"\(.*\)"/\1/' | cachix push chvp - - run: nix build -L --no-link .#nixosConfigurations.urithiru.config.system.build.toplevel - - run: nix eval --json ".#nixosConfigurations.urithiru.config.system.build.toplevel.outPath" | sed 's/"\(.*\)"/\1/' | cachix push chvp - - run: nix build -L --no-link .#nixosConfigurations.kharbranth.config.system.build.toplevel - - run: nix eval --json ".#nixosConfigurations.kharbranth.config.system.build.toplevel.outPath" | sed 's/"\(.*\)"/\1/' | cachix push chvp - - run: nix build -L --no-link .#nixosConfigurations.kholinar.config.system.build.toplevel - - run: nix eval --json ".#nixosConfigurations.kholinar.config.system.build.toplevel.outPath" | sed 's/"\(.*\)"/\1/' | cachix push chvp + - run: nix build -L --no-link .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel + - run: nix eval --json ".#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel.outPath" | sed 's/"\(.*\)"/\1/' | cachix push chvp