File tree 1 file changed +24
-1
lines changed
1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 2
2
push :
3
3
4
4
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
+
5
28
build :
6
29
runs-on : ubuntu-latest
7
30
steps :
8
31
- run : sudo apt install nix
9
32
- run : echo tree
10
- - run : sudo nix develop --experimental-features 'nix-command flakes'
33
+ - run : sudo nix develop --experimental-features 'nix-command flakes'
11
34
- run : make
12
35
- run : make clean
13
36
- run : make test
You can’t perform that action at this time.
0 commit comments