Parallelize building hosts on new commit

This commit is contained in:
Charlotte Van Petegem 2023-01-28 10:09:53 +01:00
parent 256864f74f
commit 46ba8d6cf4
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -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