https://dev.kronoz.win/r/rgit.git
1on: [push, pull_request]
2
3name: CI
4
5jobs:
6 nix-matrix:
7 runs-on: ubuntu-latest
8 outputs:
9 matrix: ${{ steps.set-matrix.outputs.matrix }}
10 steps:
11 - uses: actions/checkout@v4
12 - uses: cachix/install-nix-action@v30
13 - id: set-matrix
14 name: Generate Nix Matrix
15 run: |
16 set -Eeu
17 matrix="$(nix eval --json '.#githubActions.matrix')"
18 echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
19
20 check:
21 name: ${{ matrix.name }} (${{ matrix.system }})
22 needs: nix-matrix
23 runs-on: ${{ matrix.os }}
24 strategy:
25 matrix: ${{fromJSON(needs.nix-matrix.outputs.matrix)}}
26 steps:
27 - uses: actions/checkout@v4
28 - uses: cachix/install-nix-action@v30
29 - name: Authenticate with Cachix
30 uses: cachix/cachix-action@v15
31 with:
32 name: rgit
33 authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
34 - run: nix build -L '.#${{ matrix.attr }}'