9
9
ACTIONS_STEP_DEBUG : true
10
10
11
11
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
+
12
24
public-cache :
25
+ needs : [build]
13
26
strategy :
14
27
matrix :
15
28
os : [ubuntu-latest, macos-latest]
16
29
useDaemon : [true, false]
17
30
runs-on : ${{ matrix.os }}
18
31
steps :
19
32
- uses : actions/checkout@v4
20
- - run : pnpm install --frozen-lockfile
21
- - run : pnpm build
22
- # check if typescript generation was committed
23
- - run : git diff --exit-code
24
33
- uses : cachix/install-nix-action@v30
25
34
- name : Test public cache
26
35
uses : ./
@@ -31,15 +40,14 @@ jobs:
31
40
- run : nix-build test.nix
32
41
33
42
public-cache-no-signing-key :
43
+ needs : [build]
34
44
strategy :
35
45
matrix :
36
46
os : [ubuntu-latest, macos-latest]
37
47
useDaemon : [true, false]
38
48
runs-on : ${{ matrix.os }}
39
49
steps :
40
50
- uses : actions/checkout@v4
41
- - run : pnpm install --frozen-lockfile
42
- - run : pnpm build
43
51
- uses : cachix/install-nix-action@v30
44
52
- name : Test public cache no signing key
45
53
uses : ./
49
57
- run : nix-build test.nix
50
58
51
59
private-cache :
60
+ needs : [build]
52
61
if : ${{ github.ref == 'refs/heads/master' }}
53
62
strategy :
54
63
matrix :
57
66
runs-on : ${{ matrix.os }}
58
67
steps :
59
68
- uses : actions/checkout@v4
60
- - run : pnpm install --frozen-lockfile
61
- - run : pnpm build
62
69
- uses : cachix/install-nix-action@v30
63
70
- name : Test private cache
64
71
uses : ./
@@ -70,14 +77,13 @@ jobs:
70
77
- run : nix-build test.nix
71
78
72
79
push-paths :
80
+ needs : [build]
73
81
strategy :
74
82
matrix :
75
83
os : [ubuntu-latest, macos-latest]
76
84
runs-on : ${{ matrix.os }}
77
85
steps :
78
86
- uses : actions/checkout@v4
79
- - run : pnpm install --frozen-lockfile
80
- - run : pnpm build
81
87
- uses : cachix/install-nix-action@v30
82
88
- id : paths
83
89
run : |
@@ -91,14 +97,13 @@ jobs:
91
97
pathsToPush : " ${{ steps.paths.outputs.OUT_PATHS }}"
92
98
93
99
installCommand :
100
+ needs : [build]
94
101
strategy :
95
102
matrix :
96
103
os : [ubuntu-latest, macos-latest]
97
104
runs-on : ${{ matrix.os }}
98
105
steps :
99
106
- uses : actions/checkout@v4
100
- - run : pnpm install --frozen-lockfile
101
- - run : pnpm build
102
107
- uses : cachix/install-nix-action@v30
103
108
- name : Test private cache
104
109
uses : ./
@@ -109,6 +114,7 @@ jobs:
109
114
- run : nix-build test.nix
110
115
111
116
nix-master :
117
+ needs : [build]
112
118
strategy :
113
119
matrix :
114
120
include :
@@ -133,9 +139,6 @@ jobs:
133
139
install_url : https://hydra.nixos.org/job/nix/master/installerScript/latest-finished/download/1/install
134
140
install_options : " --tarball-url-prefix http://localhost:8080"
135
141
136
- - run : pnpm install --frozen-lockfile
137
- - run : pnpm build
138
-
139
142
- name : Test public cache
140
143
uses : ./
141
144
with :
0 commit comments