mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 14:20:44 -06:00
try with a for loop
This commit is contained in:
parent
64f31f3080
commit
8893df6a89
1 changed files with 15 additions and 10 deletions
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
|
@ -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: |
|
||||
for host in "$HOSTS"
|
||||
do
|
||||
cachix watch-exec daylin -- \
|
||||
nix build \
|
||||
'.#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel' \
|
||||
".#nixosConfigurations.$host.config.system.build.toplevel" \
|
||||
--accept-flake-config \
|
||||
--print-build-logs
|
||||
done
|
||||
- name: Push
|
||||
env:
|
||||
CACHIX_ACTIVATE_TOKEN: "${{ secrets.CACHIX_ACTIVATE_TOKEN }}"
|
||||
|
|
Loading…
Reference in a new issue