1
1
name : " Build"
2
+
2
3
on :
3
4
pull_request :
4
5
push :
6
+
7
+ concurrency :
8
+ group : ${{ github.workflow }}-${{ github.ref }}
9
+ cancel-in-progress : true
10
+
5
11
jobs :
6
12
tests :
7
13
strategy :
@@ -10,25 +16,47 @@ jobs:
10
16
runs-on : ${{ matrix.os }}
11
17
steps :
12
18
- uses : actions/checkout@v4
13
- - uses : cachix/install-nix-action@v30
14
- - uses : cachix/cachix-action@v15
19
+ - uses : cachix/install-nix-action@v31
20
+ - uses : cachix/cachix-action@v16
15
21
with :
16
22
name : pre-commit-hooks
17
23
signingKey : ' ${{ secrets.CACHIX_SIGNING_KEY }}'
18
24
- run : rm -rf /opt&
19
25
- run : nix-build --keep-going
26
+
20
27
tests-flakes :
21
28
strategy :
22
29
matrix :
23
30
os : [ubuntu-latest, macos-latest]
24
31
runs-on : ${{ matrix.os }}
25
32
steps :
26
33
- uses : actions/checkout@v4
27
- - uses : cachix/install-nix-action@v30
28
- - uses : cachix/cachix-action@v15
34
+ - uses : cachix/install-nix-action@v31
35
+ - uses : cachix/cachix-action@v16
29
36
with :
30
37
name : pre-commit-hooks
31
38
signingKey : ' ${{ secrets.CACHIX_SIGNING_KEY }}'
32
39
- run : rm -rf /opt&
33
- - run : nix flake check -L --show-trace
40
+
41
+ - name : Check nixpkgs-unstable
42
+ run : nix flake check -L --show-trace
43
+
34
44
- run : nix eval .#lib.x86_64-linux.run --show-trace
45
+
46
+ tests-flakes-stable :
47
+ strategy :
48
+ matrix :
49
+ os : [ubuntu-latest, macos-latest]
50
+ runs-on : ${{ matrix.os }}
51
+ steps :
52
+ - uses : actions/checkout@v4
53
+ - uses : cachix/install-nix-action@v31
54
+ - uses : cachix/cachix-action@v16
55
+ with :
56
+ name : pre-commit-hooks
57
+ signingKey : ' ${{ secrets.CACHIX_SIGNING_KEY }}'
58
+ - run : rm -rf /opt&
59
+
60
+ - name : Check nixpkgs-stable
61
+ run : nix flake check -L --show-trace --override-input nixpkgs github:NixOS/nixpkgs/nixos-24.11
62
+
0 commit comments