File tree 2 files changed +28
-24
lines changed
2 files changed +28
-24
lines changed Original file line number Diff line number Diff line change
1
+ name : " Build"
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - master
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - uses : cachix/install-nix-action@v30
15
+ - run : nix profile install nixpkgs#devenv
16
+ - name : Build
17
+ run : devenv shell -- pnpm build
18
+ # Check that build was committed
19
+ - name : Verify latest build
20
+ run : git diff --exit-code
21
+
22
+ test :
23
+ needs : [build]
24
+ uses : ./.github/workflows/test.yml
25
+ secrets : inherit
Original file line number Diff line number Diff line change 1
- name : " cachix-action test"
2
- on :
3
- pull_request :
4
- push :
5
- branches :
6
- - master
1
+ name : " Test"
2
+
3
+ on : workflow_call
7
4
8
5
env :
9
6
ACTIONS_STEP_DEBUG : true
10
7
11
8
jobs :
12
- build :
13
- runs-on : ubuntu-latest
14
- steps :
15
- - uses : actions/checkout@v4
16
- - uses : cachix/install-nix-action@v30
17
- - run : nix profile install nixpkgs#devenv
18
- - name : Build
19
- run : devenv shell -- pnpm build
20
- # Check that build was committed
21
- - name : Verify latest build
22
- run : git diff --exit-code
23
-
24
9
public-cache :
25
- needs : [build]
26
10
strategy :
27
11
matrix :
28
12
os : [ubuntu-latest, macos-latest]
40
24
- run : nix-build test.nix
41
25
42
26
public-cache-no-signing-key :
43
- needs : [build]
44
27
strategy :
45
28
matrix :
46
29
os : [ubuntu-latest, macos-latest]
57
40
- run : nix-build test.nix
58
41
59
42
private-cache :
60
- needs : [build]
61
43
if : ${{ github.ref == 'refs/heads/master' }}
62
44
strategy :
63
45
matrix :
77
59
- run : nix-build test.nix
78
60
79
61
push-paths :
80
- needs : [build]
81
62
strategy :
82
63
matrix :
83
64
os : [ubuntu-latest, macos-latest]
97
78
pathsToPush : " ${{ steps.paths.outputs.OUT_PATHS }}"
98
79
99
80
installCommand :
100
- needs : [build]
101
81
strategy :
102
82
matrix :
103
83
os : [ubuntu-latest, macos-latest]
114
94
- run : nix-build test.nix
115
95
116
96
nix-master :
117
- needs : [build]
118
97
strategy :
119
98
matrix :
120
99
include :
You can’t perform that action at this time.
0 commit comments