mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 18:30:43 -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:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
env:
|
||||||
|
HOSTS: "algiz othalan mannaz"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
host: ["algiz", "othalan", "mannaz"]
|
# hosts: "algiz othalan mannaz"
|
||||||
# try to use the cache here along the way
|
# try to use the cache here along the way
|
||||||
fail-fast: true
|
# fail-fast: true
|
||||||
max-parallel: 1
|
# max-parallel: 1
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# free up some space
|
# free up some space
|
||||||
|
@ -32,11 +34,14 @@ jobs:
|
||||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
|
for host in "$HOSTS"
|
||||||
|
do
|
||||||
cachix watch-exec daylin -- \
|
cachix watch-exec daylin -- \
|
||||||
nix build \
|
nix build \
|
||||||
'.#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel' \
|
".#nixosConfigurations.$host.config.system.build.toplevel" \
|
||||||
--accept-flake-config \
|
--accept-flake-config \
|
||||||
--print-build-logs
|
--print-build-logs
|
||||||
|
done
|
||||||
- name: Push
|
- name: Push
|
||||||
env:
|
env:
|
||||||
CACHIX_ACTIVATE_TOKEN: "${{ secrets.CACHIX_ACTIVATE_TOKEN }}"
|
CACHIX_ACTIVATE_TOKEN: "${{ secrets.CACHIX_ACTIVATE_TOKEN }}"
|
||||||
|
|
Loading…
Reference in a new issue