From 8893df6a89be5531fb15203a54277f73e3be359b Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 24 Jan 2024 00:11:55 -0600 Subject: [PATCH] try with a for loop --- .github/workflows/build.yml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b5eae5d..368fd34 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,15 +7,17 @@ on: pull_request: branches: - main +env: + HOSTS: "algiz othalan mannaz" jobs: build: - strategy: - matrix: - host: ["algiz", "othalan", "mannaz"] + # strategy: + # matrix: + # hosts: "algiz othalan mannaz" # try to use the cache here along the way - fail-fast: true - max-parallel: 1 + # fail-fast: true + # max-parallel: 1 runs-on: ubuntu-latest steps: # free up some space @@ -32,11 +34,14 @@ jobs: authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - name: Build run: | - cachix watch-exec daylin -- \ - nix build \ - '.#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel' \ - --accept-flake-config \ - --print-build-logs + for host in "$HOSTS" + do + cachix watch-exec daylin -- \ + nix build \ + ".#nixosConfigurations.$host.config.system.build.toplevel" \ + --accept-flake-config \ + --print-build-logs + done - name: Push env: CACHIX_ACTIVATE_TOKEN: "${{ secrets.CACHIX_ACTIVATE_TOKEN }}"