Skip to content

Commit

Permalink
use nix for matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-ni committed Sep 23, 2024
1 parent 430e8a4 commit 088a57b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
echo "hosts=$(ls hosts | sed -n 's/\.nix$//p' | jq -R | jq -sc)" >> "$GITHUB_OUTPUT"
- uses: DeterminateSystems/nix-installer-action@v14
- uses: DeterminateSystems/flake-checker-action@v9
- run: echo "hosts=$(nix eval .#colmena --apply builtins.attrNames --json)" >> "$GITHUB_OUTPUT"

test:
runs-on: ubuntu-latest
Expand All @@ -32,7 +33,6 @@ jobs:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v14
- uses: DeterminateSystems/magic-nix-cache-action@v8
- uses: DeterminateSystems/flake-checker-action@v9

- name: Build NixOS hosts
run: nix develop -c colmena build --on ${{ matrix.host }}

0 comments on commit 088a57b

Please sign in to comment.