-
Notifications
You must be signed in to change notification settings - Fork 55
47 lines (43 loc) · 1.11 KB
/
nix-checks.yaml
File metadata and controls
47 lines (43 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Nix
on:
pull_request:
jobs:
checks:
runs-on: ubuntu-latest
strategy:
matrix:
check:
- formatting
- go-bindings
- haskell-bindings
- reprolang
- reprolang-generated
- rust-bindings
- typescript-bindings
steps:
- uses: actions/checkout@v6
- uses: DeterminateSystems/nix-installer-action@v21
- uses: DeterminateSystems/magic-nix-cache-action@v13
- run: nix build .#checks.x86_64-linux.${{ matrix.check }}
runs:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- scip
- proto-generate
steps:
- uses: actions/checkout@v6
- uses: DeterminateSystems/nix-installer-action@v21
- uses: DeterminateSystems/magic-nix-cache-action@v13
- run: nix run .#${{ matrix.package }}
- run: git diff --exit-code
nix-checks-pass:
if: always()
needs: [checks, runs]
runs-on: ubuntu-latest
steps:
- if: >-
contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'cancelled')
run: exit 1