@@ -109,11 +109,16 @@ jobs:
109
109
image : ${{ fromJSON(needs.configure.outputs.params).build_image }}
110
110
options : -u 1001:1001
111
111
steps :
112
- - uses : actions/checkout@v2
112
+ # GHA requires relative paths for actions. Copy actions from container root
113
+ # to CWD.
114
+ - run : cp -r /actions .
115
+ # Cleanup will be run after all actions are completed.
116
+ - name : Register cleanup after job is finished
117
+ uses : ./actions/cleanup
118
+ - uses : ./actions/cached_checkout
113
119
with :
114
120
path : src
115
- - name : Register cleanup after job is finished
116
- uses : ./src/devops/actions/cleanup
121
+ cache_path : " /__w/repo_cache/"
117
122
- name : Setup Cache
118
123
uses : actions/cache@v2
119
124
if : ${{ steps.parameters.build_github_cache }}
@@ -213,11 +218,14 @@ jobs:
213
218
image : ${{ fromJSON(needs.configure.outputs.params).intel_drivers_image }}
214
219
options : -u 1001 --device=/dev/dri
215
220
steps :
221
+ - run : cp -r /actions .
222
+ - name : Register cleanup after job is finished
223
+ uses : ./actions/cleanup
224
+ # FIXME cached_checkout fails here, but works everywhere else
216
225
- uses : actions/checkout@v2
217
226
with :
218
227
path : llvm
219
- - name : Register cleanup after job is finished
220
- uses : ./llvm/devops/actions/cleanup
228
+ # TODO should this action be packed into container as well?
221
229
- uses : ./llvm/devops/actions/llvm_test_suite
222
230
name : Run LLVM Test Suite
223
231
with :
@@ -240,11 +248,13 @@ jobs:
240
248
image : ${{ fromJSON(needs.configure.outputs.params).intel_drivers_image }}
241
249
options : -u 1001 --device=/dev/dri
242
250
steps :
251
+ - run : cp -r /actions .
252
+ - name : Register cleanup after job is finished
253
+ uses : ./actions/cleanup
254
+ # FIXME cached_checkout fails here, but works everywhere else
243
255
- uses : actions/checkout@v2
244
256
with :
245
257
path : llvm
246
- - name : Register cleanup after job is finished
247
- uses : ./llvm/devops/actions/cleanup
248
258
- uses : ./llvm/devops/actions/llvm_test_suite
249
259
name : Run LLVM Test Suite
250
260
with :
@@ -267,11 +277,13 @@ jobs:
267
277
image : ${{ fromJSON(needs.configure.outputs.params).intel_drivers_image }}
268
278
options : -u 1001
269
279
steps :
280
+ - run : cp -r /actions .
281
+ - name : Register cleanup after job is finished
282
+ uses : ./actions/cleanup
283
+ # FIXME cached_checkout fails here, but works everywhere else
270
284
- uses : actions/checkout@v2
271
285
with :
272
286
path : llvm
273
- - name : Register cleanup after job is finished
274
- uses : ./llvm/devops/actions/cleanup
275
287
- uses : ./llvm/devops/actions/llvm_test_suite
276
288
name : Run LLVM Test Suite
277
289
with :
@@ -293,11 +305,15 @@ jobs:
293
305
image : ${{ fromJSON(needs.configure.outputs.params).amdgpu_image }}
294
306
options : --device=/dev/dri --device=/dev/kfd
295
307
steps :
308
+ - run : cp -r /actions .
309
+ - name : Register cleanup after job is finished
310
+ uses : ./actions/cleanup
311
+ # TODO remove this step one LLVM Test Suite action is settled and packed
312
+ # into container.
313
+ # FIXME cached_checkout fails here, but works everywhere else
296
314
- uses : actions/checkout@v2
297
315
with :
298
316
path : llvm
299
- - name : Register cleanup after job is finished
300
- uses : ./llvm/devops/actions/cleanup
301
317
- uses : ./llvm/devops/actions/llvm_test_suite
302
318
name : Run LLVM Test Suite
303
319
with :
0 commit comments