From 46ba8d6cf4e771bff36f2798ed851a7ee7bece5e Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Sat, 28 Jan 2023 10:09:53 +0100 Subject: [PATCH] Parallelize building hosts on new commit --- .github/workflows/cachix.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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