2323
2424 steps :
2525
26- - uses : actions/checkout@v4
26+ - &checkout
27+ uses : actions/checkout@v6
2728
2829 - name : Install System dependencies
2930 shell : bash -l {0}
3940 # ##
4041 # Installing libhdf4 and libhdf5
4142 # ##
42- - name : Cache libhdf5-${{ matrix.hdf5 }}-${{ matrix.netcdf }}
43+ - &hdf5-cache
44+ name : Cache libhdf5-${{ matrix.hdf5 }}-${{ matrix.netcdf }}
4345 id : cache-hdf5
44- uses : actions/cache@v4
46+ uses : actions/cache@v5
4547 with :
4648 path : ~/environments/${{ matrix.hdf5 }}-${{ matrix.netcdf }}
4749 key : hdf5-${{ runner.os }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}
7981
8082 steps :
8183
82- - uses : actions/ checkout@v4
84+ - * checkout
8385
8486 - name : Install System dependencies
8587 shell : bash -l {0}
9698 # ##
9799 # Installing libhdf4 and libhdf5
98100 # ##
99- - name : Cache libhdf5-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-par
101+ - &hdf5-cache-par
102+ name : Cache libhdf5-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-par
100103 id : cache-hdf5-par
101- uses : actions/cache@v4
104+ uses : actions/cache@v5
102105 with :
103106 path : ~/environments/${{ matrix.hdf5 }}-${{ matrix.netcdf }}
104107 key : hdf5-nc-${{ runner.os }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-par
@@ -138,7 +141,7 @@ jobs:
138141
139142 steps :
140143
141- - uses : actions/ checkout@v4
144+ - * checkout
142145
143146 - name : Install System dependencies
144147 shell : bash -l {0}
@@ -158,16 +161,12 @@ jobs:
158161# Fetch Cache
159162# ##
160163
161- - name : Fetch HDF Cache
162- id : cache-hdf
163- uses : actions/cache@v4
164- with :
165- path : ~/environments/${{ matrix.hdf5 }}-${{ matrix.netcdf }}
166- key : hdf5-${{ runner.os }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}
164+ - *hdf5-cache
167165
168- - name : Check Cache
166+ - &hdf5-cache-check
167+ name : Check Cache
169168 shell : bash -l {0}
170- run : ls ${HOME}/environments && ls ${HOME}/environments/${{ matrix.hdf5 }}-${{ matrix.netcdf }} && ls ${HOME}/environments/${{ matrix.hdf5 }}-${{ matrix.netcdf}}/lib
169+ run : ls ${HOME}/environments && ls ${HOME}/environments/${{ matrix.hdf5 }}-${{ matrix.netcdf }} && ls ${HOME}/environments/${{ matrix.hdf5 }}-${{ matrix.netcdf }}/lib
171170
172171# ##
173172# Configure and build
@@ -185,7 +184,7 @@ jobs:
185184 make -j install
186185 popd
187186 popd
188- if : ${{ matrix.netcdf }} == " main"
187+ if : matrix.netcdf == ' main'
189188
190189 - name : Run autoconf
191190 shell : bash -l {0}
@@ -235,7 +234,7 @@ jobs:
235234
236235 steps :
237236
238- - uses : actions/ checkout@v4
237+ - * checkout
239238
240239 - name : Install System dependencies
241240 shell : bash -l {0}
@@ -256,16 +255,9 @@ jobs:
256255# Fetch Cache
257256# ##
258257
259- - name : Fetch HDF Cache
260- id : cache-hdf-par
261- uses : actions/cache@v4
262- with :
263- path : ~/environments/${{ matrix.hdf5 }}-${{ matrix.netcdf }}
264- key : hdf5-nc-${{ runner.os }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}-par
258+ - *hdf5-cache-par
265259
266- - name : Check Cache
267- shell : bash -l {0}
268- run : ls ${HOME}/environments && ls ${HOME}/environments/${{ matrix.hdf5 }}-${{ matrix.netcdf }} && ls ${HOME}/environments/${{ matrix.hdf5 }}-${{ matrix.netcdf}}/lib
260+ - *hdf5-cache-check
269261
270262# ##
271263# Configure and build
@@ -283,7 +275,7 @@ jobs:
283275 make -j install
284276 popd
285277 popd
286- if : ${{ matrix.netcdf }} == " main"
278+ if : matrix.netcdf == ' main'
287279
288280 - name : Run autoconf
289281 shell : bash -l {0}
@@ -322,7 +314,7 @@ jobs:
322314 run : |
323315 echo -e "\n\n\to NPROC: $(nproc)\n\n"
324316 find . -name "test-suite.log" -exec cat {} \;
325- if : ${{ failure() }}
317+ if : ${{ failure() }}
326318
327319 # - name: Make Distcheck
328320 # shell: bash -l {0}
@@ -335,12 +327,12 @@ jobs:
335327
336328 strategy :
337329 matrix :
338- hdf5 : [ 1.12.2 ]
330+ hdf5 : [ " 1.12.2", "2.1.1" ]
339331 netcdf : [ v4.9.3 ]
340332
341333 steps :
342334
343- - uses : actions/ checkout@v4
335+ - * checkout
344336
345337 - name : Install System dependencies
346338 shell : bash -l {0}
@@ -361,17 +353,9 @@ jobs:
361353# Fetch Cache
362354# ##
363355
364- - name : Fetch HDF Cache
365- id : cache-hdf5
366- uses : actions/cache@v4
367- with :
368- path : ~/environments/${{ matrix.hdf5 }}-${{ matrix.netcdf }}
369- key : hdf5-${{ runner.os }}-${{ matrix.hdf5 }}-${{ matrix.netcdf }}
370-
371- - name : Check Cache
372- shell : bash -l {0}
373- run : ls ${HOME}/environments && ls ${HOME}/environments/${{ matrix.hdf5 }}-${{ matrix.netcdf }} && ls ${HOME}/environments/${{ matrix.hdf5 }}-${{matrix.netcdf}}/lib
356+ - *hdf5-cache
374357
358+ - *hdf5-cache-check
375359# ##
376360# Configure and build
377361# ##
@@ -388,7 +372,7 @@ jobs:
388372 make -j install
389373 popd
390374 popd
391- if : ${{ matrix.netcdf }} == " main"
375+ if : matrix.netcdf == ' main'
392376
393377 - name : Perform out-of-directory build
394378 shell : bash -l {0}
0 commit comments