@@ -27,11 +27,11 @@ jobs:
27
27
fetch-depth : 0
28
28
ref : ${{ env.tested_commit }}
29
29
- name : Cachix install
30
- uses : cachix/install-nix-action@v30
30
+ uses : cachix/install-nix-action@v31
31
31
with :
32
32
nix_path : nixpkgs=channel:nixpkgs-unstable
33
33
- name : Cachix setup math-comp
34
- uses : cachix/cachix-action@v15
34
+ uses : cachix/cachix-action@v16
35
35
with :
36
36
authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
37
37
extraPullNames : coq, coq-community
@@ -40,15 +40,16 @@ jobs:
40
40
name : Getting derivation for current job (coq)
41
41
run : " NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle
42
42
\" 8.20\" --argstr job \" coq\" \\\n --dry-run 2> err > out || (touch fail;
43
- true)\n "
44
- - name : Error reporting
45
- run : " echo \" out=\" ; cat out\n echo \" err=\" ; cat err\n "
46
- - name : Failure check
47
- run : if [ -e fail ]; then exit 1; else exit 0; fi;
43
+ true)\n cat out err\n if [ -e fail ]; then echo \" Error: getting derivation
44
+ failed\" ; exit 1; fi\n "
48
45
- id : stepCheck
49
46
name : Checking presence of CI target for current job
50
- run : (echo -n status=; cat out err | grep "built:" | sed "s/.*/built/") >> $GITHUB_OUTPUT
51
- - if : steps.stepCheck.outputs.status == 'built'
47
+ run : " if $(cat out err | grep -q \" built:\" ) ; then\n echo \" CI target needs
48
+ actual building\"\n if $(cat out err | grep -q \" derivations will be built:\" \
49
+ ) ; then\n echo \" waiting a bit for derivations that should be in cache\" \
50
+ \n sleep 30\n fi\n else\n echo \" CI target already built\"\n echo \" \
51
+ status=fetched\" >> $GITHUB_OUTPUT\n fi\n "
52
+ - if : steps.stepCheck.outputs.status != 'fetched'
52
53
name : Building/fetching current CI target
53
54
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
54
55
job "coq"
@@ -81,11 +82,11 @@ jobs:
81
82
fetch-depth : 0
82
83
ref : ${{ env.tested_commit }}
83
84
- name : Cachix install
84
- uses : cachix/install-nix-action@v30
85
+ uses : cachix/install-nix-action@v31
85
86
with :
86
87
nix_path : nixpkgs=channel:nixpkgs-unstable
87
88
- name : Cachix setup math-comp
88
- uses : cachix/cachix-action@v15
89
+ uses : cachix/cachix-action@v16
89
90
with :
90
91
authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
91
92
extraPullNames : coq, coq-community
@@ -94,55 +95,28 @@ jobs:
94
95
name : Getting derivation for current job (mathcomp)
95
96
run : " NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle
96
97
\" 8.20\" --argstr job \" mathcomp\" \\\n --dry-run 2> err > out || (touch
97
- fail; true)\n "
98
- - name : Error reporting
99
- run : " echo \" out=\" ; cat out\n echo \" err=\" ; cat err\n "
100
- - name : Failure check
101
- run : if [ -e fail ]; then exit 1; else exit 0; fi;
98
+ fail; true)\n cat out err\n if [ -e fail ]; then echo \" Error: getting derivation
99
+ failed\" ; exit 1; fi\n "
102
100
- id : stepCheck
103
101
name : Checking presence of CI target for current job
104
- run : (echo -n status=; cat out err | grep "built:" | sed "s/.*/built/") >> $GITHUB_OUTPUT
105
- - if : steps.stepCheck.outputs.status == 'built'
102
+ run : " if $(cat out err | grep -q \" built:\" ) ; then\n echo \" CI target needs
103
+ actual building\"\n if $(cat out err | grep -q \" derivations will be built:\" \
104
+ ) ; then\n echo \" waiting a bit for derivations that should be in cache\" \
105
+ \n sleep 30\n fi\n else\n echo \" CI target already built\"\n echo \" \
106
+ status=fetched\" >> $GITHUB_OUTPUT\n fi\n "
107
+ - if : steps.stepCheck.outputs.status != 'fetched'
106
108
name : ' Building/fetching previous CI target: coq'
107
109
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
108
110
job "coq"
109
- - if : steps.stepCheck.outputs.status == 'built'
110
- name : ' Building/fetching previous CI target: stdlib'
111
- run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
112
- job "stdlib"
113
- - if : steps.stepCheck.outputs.status == 'built'
114
- name : ' Building/fetching previous CI target: mathcomp-ssreflect'
115
- run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
116
- job "mathcomp-ssreflect"
117
- - if : steps.stepCheck.outputs.status == 'built'
118
- name : ' Building/fetching previous CI target: mathcomp-fingroup'
119
- run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
120
- job "mathcomp-fingroup"
121
- - if : steps.stepCheck.outputs.status == 'built'
122
- name : ' Building/fetching previous CI target: mathcomp-algebra'
123
- run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
124
- job "mathcomp-algebra"
125
- - if : steps.stepCheck.outputs.status == 'built'
126
- name : ' Building/fetching previous CI target: mathcomp-solvable'
127
- run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
128
- job "mathcomp-solvable"
129
- - if : steps.stepCheck.outputs.status == 'built'
130
- name : ' Building/fetching previous CI target: mathcomp-field'
131
- run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
132
- job "mathcomp-field"
133
- - if : steps.stepCheck.outputs.status == 'built'
111
+ - if : steps.stepCheck.outputs.status != 'fetched'
134
112
name : ' Building/fetching previous CI target: mathcomp-character'
135
113
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
136
114
job "mathcomp-character"
137
- - if : steps.stepCheck.outputs.status == 'built '
115
+ - if : steps.stepCheck.outputs.status != 'fetched '
138
116
name : ' Building/fetching previous CI target: hierarchy-builder'
139
117
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
140
118
job "hierarchy-builder"
141
- - if : steps.stepCheck.outputs.status == 'built'
142
- name : ' Building/fetching previous CI target: stdlib'
143
- run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
144
- job "stdlib"
145
- - if : steps.stepCheck.outputs.status == 'built'
119
+ - if : steps.stepCheck.outputs.status != 'fetched'
146
120
name : Building/fetching current CI target
147
121
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
148
122
job "mathcomp"
@@ -175,11 +149,11 @@ jobs:
175
149
fetch-depth : 0
176
150
ref : ${{ env.tested_commit }}
177
151
- name : Cachix install
178
- uses : cachix/install-nix-action@v30
152
+ uses : cachix/install-nix-action@v31
179
153
with :
180
154
nix_path : nixpkgs=channel:nixpkgs-unstable
181
155
- name : Cachix setup math-comp
182
- uses : cachix/cachix-action@v15
156
+ uses : cachix/cachix-action@v16
183
157
with :
184
158
authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
185
159
extraPullNames : coq, coq-community
@@ -188,27 +162,24 @@ jobs:
188
162
name : Getting derivation for current job (mathcomp-finmap)
189
163
run : " NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle
190
164
\" 8.20\" --argstr job \" mathcomp-finmap\" \\\n --dry-run 2> err > out ||
191
- (touch fail; true)\n "
192
- - name : Error reporting
193
- run : " echo \" out=\" ; cat out\n echo \" err=\" ; cat err\n "
194
- - name : Failure check
195
- run : if [ -e fail ]; then exit 1; else exit 0; fi;
165
+ (touch fail; true)\n cat out err\n if [ -e fail ]; then echo \" Error: getting
166
+ derivation failed\" ; exit 1; fi\n "
196
167
- id : stepCheck
197
168
name : Checking presence of CI target for current job
198
- run : (echo -n status=; cat out err | grep "built:" | sed "s/.*/built/") >> $GITHUB_OUTPUT
199
- - if : steps.stepCheck.outputs.status == 'built'
169
+ run : " if $(cat out err | grep -q \" built:\" ) ; then\n echo \" CI target needs
170
+ actual building\"\n if $(cat out err | grep -q \" derivations will be built:\" \
171
+ ) ; then\n echo \" waiting a bit for derivations that should be in cache\" \
172
+ \n sleep 30\n fi\n else\n echo \" CI target already built\"\n echo \" \
173
+ status=fetched\" >> $GITHUB_OUTPUT\n fi\n "
174
+ - if : steps.stepCheck.outputs.status != 'fetched'
200
175
name : ' Building/fetching previous CI target: coq'
201
176
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
202
177
job "coq"
203
- - if : steps.stepCheck.outputs.status == 'built'
204
- name : ' Building/fetching previous CI target: mathcomp-ssreflect'
205
- run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
206
- job "mathcomp-ssreflect"
207
- - if : steps.stepCheck.outputs.status == 'built'
208
- name : ' Building/fetching previous CI target: stdlib'
178
+ - if : steps.stepCheck.outputs.status != 'fetched'
179
+ name : ' Building/fetching previous CI target: mathcomp-boot'
209
180
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
210
- job "stdlib "
211
- - if : steps.stepCheck.outputs.status == 'built '
181
+ job "mathcomp-boot "
182
+ - if : steps.stepCheck.outputs.status != 'fetched '
212
183
name : Building/fetching current CI target
213
184
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
214
185
job "mathcomp-finmap"
@@ -242,11 +213,11 @@ jobs:
242
213
fetch-depth : 0
243
214
ref : ${{ env.tested_commit }}
244
215
- name : Cachix install
245
- uses : cachix/install-nix-action@v30
216
+ uses : cachix/install-nix-action@v31
246
217
with :
247
218
nix_path : nixpkgs=channel:nixpkgs-unstable
248
219
- name : Cachix setup math-comp
249
- uses : cachix/cachix-action@v15
220
+ uses : cachix/cachix-action@v16
250
221
with :
251
222
authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
252
223
extraPullNames : coq, coq-community
@@ -255,39 +226,40 @@ jobs:
255
226
name : Getting derivation for current job (multinomials)
256
227
run : " NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle
257
228
\" 8.20\" --argstr job \" multinomials\" \\\n --dry-run 2> err > out || (touch
258
- fail; true)\n "
259
- - name : Error reporting
260
- run : " echo \" out=\" ; cat out\n echo \" err=\" ; cat err\n "
261
- - name : Failure check
262
- run : if [ -e fail ]; then exit 1; else exit 0; fi;
229
+ fail; true)\n cat out err\n if [ -e fail ]; then echo \" Error: getting derivation
230
+ failed\" ; exit 1; fi\n "
263
231
- id : stepCheck
264
232
name : Checking presence of CI target for current job
265
- run : (echo -n status=; cat out err | grep "built:" | sed "s/.*/built/") >> $GITHUB_OUTPUT
266
- - if : steps.stepCheck.outputs.status == 'built'
233
+ run : " if $(cat out err | grep -q \" built:\" ) ; then\n echo \" CI target needs
234
+ actual building\"\n if $(cat out err | grep -q \" derivations will be built:\" \
235
+ ) ; then\n echo \" waiting a bit for derivations that should be in cache\" \
236
+ \n sleep 30\n fi\n else\n echo \" CI target already built\"\n echo \" \
237
+ status=fetched\" >> $GITHUB_OUTPUT\n fi\n "
238
+ - if : steps.stepCheck.outputs.status != 'fetched'
267
239
name : ' Building/fetching previous CI target: coq'
268
240
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
269
241
job "coq"
270
- - if : steps.stepCheck.outputs.status == 'built '
271
- name : ' Building/fetching previous CI target: mathcomp-ssreflect '
242
+ - if : steps.stepCheck.outputs.status != 'fetched '
243
+ name : ' Building/fetching previous CI target: mathcomp-boot '
272
244
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
273
- job "mathcomp-ssreflect "
274
- - if : steps.stepCheck.outputs.status == 'built '
245
+ job "mathcomp-boot "
246
+ - if : steps.stepCheck.outputs.status != 'fetched '
275
247
name : ' Building/fetching previous CI target: mathcomp-algebra'
276
248
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
277
249
job "mathcomp-algebra"
278
- - if : steps.stepCheck.outputs.status == 'built '
250
+ - if : steps.stepCheck.outputs.status != 'fetched '
279
251
name : ' Building/fetching previous CI target: mathcomp-finmap'
280
252
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
281
253
job "mathcomp-finmap"
282
- - if : steps.stepCheck.outputs.status == 'built '
254
+ - if : steps.stepCheck.outputs.status != 'fetched '
283
255
name : ' Building/fetching previous CI target: mathcomp-fingroup'
284
256
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
285
257
job "mathcomp-fingroup"
286
- - if : steps.stepCheck.outputs.status == 'built '
258
+ - if : steps.stepCheck.outputs.status != 'fetched '
287
259
name : ' Building/fetching previous CI target: mathcomp-bigenough'
288
260
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
289
261
job "mathcomp-bigenough"
290
- - if : steps.stepCheck.outputs.status == 'built '
262
+ - if : steps.stepCheck.outputs.status != 'fetched '
291
263
name : Building/fetching current CI target
292
264
run : NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.20" --argstr
293
265
job "multinomials"
0 commit comments