@@ -62,10 +62,10 @@ jobs:
62
62
run : |
63
63
scripts/ci/gh-actions/get-changed-files.sh
64
64
echo "::group::Test script output files"
65
- ls -la *-changed-files.txt
65
+ ls -la ./ *-changed-files.txt
66
66
NUM_CHANGES=$(wc -l < filtered-changed-files.txt)
67
67
echo "Number of files changed (filtered): ${NUM_CHANGES}"
68
- echo "num_code_changes=${NUM_CHANGES}" >> $ GITHUB_OUTPUT
68
+ echo "num_code_changes=${NUM_CHANGES}" >> "${ GITHUB_OUTPUT}"
69
69
70
70
# ######################################
71
71
# Formatting jobs
@@ -175,16 +175,10 @@ jobs:
175
175
with :
176
176
ref : ${{ github.event.pull_request.head.sha }}
177
177
path : source
178
- - name : Restore cache
179
- uses : actions/cache/restore@v4
180
- id : restore-cache
178
+ - uses : ./source/.github/actions/setup-ccache
179
+ id : setup-ccache
181
180
with :
182
- path : .ccache
183
- key : ccache-${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.parallel }}${{ matrix.shared == 'static' && '-static' || ''}}-${{ github.sha }}
184
- restore-keys : |
185
- ccache-${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.parallel }}${{ matrix.shared == 'static' && '-static' || ''}}
186
- - name : Configure cache
187
- run : ccache -z
181
+ key : ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.parallel }}${{ matrix.shared == 'static' && '-static' || ''}}
188
182
- name : Setup
189
183
run : gha/scripts/ci/gh-actions/linux-setup.sh
190
184
- name : Update
@@ -193,15 +187,10 @@ jobs:
193
187
run : gha/scripts/ci/gh-actions/run.sh configure
194
188
- name : Build
195
189
run : gha/scripts/ci/gh-actions/run.sh build
196
- - name : Print ccache statistics
197
- run : ccache -s | tee $GITHUB_STEP_SUMMARY
198
- - name : Save cache
199
- uses : actions/cache/save@v4
200
- if : ${{ github.ref_name == 'master' && steps.restore-cache.outputs.cache-hit != 'true' }}
201
- id : save-cache
190
+ - uses : ./source/.github/actions/upload-ccache
202
191
with :
203
- path : .ccache
204
- key : ccache-${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.parallel }}${{ matrix.shared == 'static' && '-static' || ''}}-${{ github.sha }}
192
+ key : ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.parallel }}${{ matrix.shared == 'static' && '-static' || ''}}
193
+ setup- ccache-outputs : steps.setup-ccache.outputs
205
194
- name : Test
206
195
if : ${{ matrix.constrains != 'build_only' }}
207
196
run : gha/scripts/ci/gh-actions/run.sh test
@@ -240,16 +229,10 @@ jobs:
240
229
with :
241
230
ref : ${{ github.event.pull_request.head.sha }}
242
231
path : source
243
- - name : Restore cache
244
- uses : actions/cache/restore@v4
245
- id : restore-cache
232
+ - uses : ./source/.github/actions/setup-ccache
233
+ id : setup-ccache
246
234
with :
247
- path : .ccache
248
- key : ccache-${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.parallel }}-${{ github.sha }}
249
- restore-keys : |
250
- ccache-${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.parallel }}
251
- - name : Configure cache
252
- run : ccache -z
235
+ key : ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.parallel }}
253
236
- name : Setup
254
237
run : gha/scripts/ci/gh-actions/linux-setup.sh
255
238
- name : Update
@@ -258,17 +241,10 @@ jobs:
258
241
run : gha/scripts/ci/gh-actions/run.sh configure
259
242
- name : Build
260
243
run : gha/scripts/ci/gh-actions/run.sh build
261
- - name : Print ccache statistics
262
- run : ccache -s
263
- - name : Save cache
264
- uses : actions/cache/save@v4
265
- if : ${{ github.ref_name == 'master' && steps.restore-cache.outputs.cache-hit != 'true' }}
266
- id : save-cache
244
+ - uses : ./source/.github/actions/upload-ccache
267
245
with :
268
- path : .ccache
269
- key : ccache-${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.parallel }}-${{ github.sha }}
270
- - name : Test
271
- run : gha/scripts/ci/gh-actions/run.sh test
246
+ key : ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.parallel }}
247
+ setup-ccache-outputs : steps.setup-ccache.outputs
272
248
273
249
macos :
274
250
needs : [format, git_checks]
@@ -318,31 +294,20 @@ jobs:
318
294
path : source
319
295
- name : Setup
320
296
run : gha/scripts/ci/gh-actions/macos-setup.sh
321
- - name : Restore cache
322
- uses : actions/cache/restore@v4
323
- id : restore-cache
297
+ - uses : ./source/.github/actions/setup-ccache
298
+ id : setup-ccache
324
299
with :
325
- path : .ccache
326
- key : ccache-${{ matrix.image}}-${{ matrix.compiler }}-${{ matrix.parallel }}-${{ matrix.shared }}-${{ github.sha }}
327
- restore-keys : |
328
- ccache-${{ matrix.image }}-${{ matrix.compiler }}-${{ matrix.parallel }}-${{ matrix.shared }}
329
- - name : Configure cache
330
- run : ccache -z
300
+ key : ${{ matrix.image }}-${{ matrix.compiler }}-${{ matrix.parallel }}-${{ matrix.shared }}
331
301
- name : Update
332
302
run : gha/scripts/ci/gh-actions/run.sh update
333
303
- name : Configure
334
304
run : gha/scripts/ci/gh-actions/run.sh configure
335
305
- name : Build
336
306
run : gha/scripts/ci/gh-actions/run.sh build
337
- - name : Print ccache statistics
338
- run : ccache -s
339
- - name : Save cache
340
- uses : actions/cache/save@v4
341
- if : ${{ github.ref_name == 'master' && steps.restore-cache.outputs.cache-hit != 'true' }}
342
- id : save-cache
307
+ - uses : ./source/.github/actions/upload-ccache
343
308
with :
344
- path : .ccache
345
- key : ccache-${{ matrix.image }}-${{ matrix.compiler }}-${{ matrix.parallel }}-${{ matrix.shared }}-${{ github.sha }}
309
+ key : ${{ matrix.image }}-${{ matrix.compiler }}-${{ matrix.parallel }}-${{ matrix.shared }}
310
+ setup- ccache-outputs : steps.setup-ccache.outputs
346
311
- name : Test
347
312
run : gha/scripts/ci/gh-actions/run.sh test
348
313
@@ -458,12 +423,12 @@ jobs:
458
423
target_tag="${GITHUB_REF##refs/heads/}-${{ matrix.baseos }}"
459
424
docker tag \
460
425
ornladios/adios2:ci-tmp \
461
- ornladios/adios2:${target_tag}
426
+ " ornladios/adios2:${target_tag}"
462
427
docker login \
463
428
--username="${DOCKERHUB_USERNAME}" \
464
429
--password="${DOCKERHUB_PASSWORD}"
465
430
docker push \
466
- ornladios/adios2:${target_tag}
431
+ " ornladios/adios2:${target_tag}"
467
432
468
433
# ######################################
469
434
# Contract testing jobs
0 commit comments