Skip to content

Commit 73daacd

Browse files
committed
qsdfljqsdf
1 parent c6f0021 commit 73daacd

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/test.yml

+24-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,35 @@ on:
22
push:
33

44
jobs:
5+
nix-matrix:
6+
runs-on: ubuntu-latest
7+
outputs:
8+
matrix: ${{ steps.set-matrix.outputs.matrix }}
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: cachix/install-nix-action@v24
12+
- id: set-matrix
13+
name: Generate Nix Matrix
14+
run: |
15+
set -Eeu
16+
echo "matrix=$(nix eval --json '.#githubActions.matrix')" >> "$GITHUB_OUTPUT"
17+
18+
nix-build:
19+
needs: nix-matrix
20+
runs-on: ${{ matrix.os }}
21+
strategy:
22+
matrix: ${{fromJSON(needs.nix-matrix.outputs.matrix)}}
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: cachix/install-nix-action@v24
26+
- run: nix build -L ".#${{ matrix.attr }}"
27+
528
build:
629
runs-on: ubuntu-latest
730
steps:
831
- run: sudo apt install nix
932
- run: echo tree
10-
- run: sudo nix develop --experimental-features 'nix-command flakes'
33+
- run: sudo nix develop --experimental-features 'nix-command flakes'
1134
- run: make
1235
- run: make clean
1336
- run: make test

0 commit comments

Comments
 (0)