@@ -14,15 +14,13 @@ concurrency:
14
14
cancel-in-progress : true
15
15
16
16
jobs :
17
-
17
+
18
18
build-deps-serial :
19
19
20
- # runs-on: ubuntu-latest
21
-
22
20
strategy :
23
21
matrix :
24
22
hdf5 : [ 1.10.8, 1.12.2, 1.14.3 ]
25
- runs-on : [ ubuntu-latest ]
23
+ runs-on : [ ubuntu-22.04 ]
26
24
27
25
runs-on : ${{ matrix.runs-on }}
28
26
@@ -41,34 +39,42 @@ jobs:
41
39
uses : actions/cache@v4
42
40
with :
43
41
path : ~/environments/${{ matrix.hdf5 }}
44
- key : hdf5-${{ runner.os }}-${{ matrix.hdf5 }}
42
+ key : hdf5-${{ runner.os }}-${{ matrix.hdf5 }}-ubuntu-22.04
45
43
46
44
47
45
- name : Build libhdf5-${{ matrix.hdf5 }}
48
46
if : steps.cache-hdf5.outputs.cache-hit != 'true'
49
47
run : |
50
48
set -x
51
-
52
49
wget https://support.hdfgroup.org/ftp/HDF/releases/HDF4.2.15/src/hdf-4.2.15.tar.bz2
53
50
tar -jxf hdf-4.2.15.tar.bz2
54
51
pushd hdf-4.2.15
55
52
./configure --prefix=${HOME}/environments/${{ matrix.hdf5 }} --disable-static --enable-shared --disable-fortran --disable-netcdf --with-szlib --enable-hdf4-xdr
56
53
make -j
57
54
make install -j
58
55
popd
59
-
60
- wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-$(echo ${{ matrix.hdf5 }} | cut -d. -f 1,2)/hdf5-${{ matrix.hdf5 }}/src/hdf5-${{ matrix.hdf5 }}.tar.bz2
61
- tar -jxf hdf5-${{ matrix.hdf5 }}.tar.bz2
56
+
57
+ if [ "${{ matrix.hdf5 }}" = "1.14.5" ]; then
58
+ wget https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5_1.14.5.tar.gz
59
+ tar -zxf hdf5_1.14.5.tar.gz
60
+ mv hdf5_1.14.5 hdf5-1.14.5
61
+ else
62
+ wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-$(echo ${{ matrix.hdf5 }} | cut -d. -f 1,2)/hdf5-${{ matrix.hdf5 }}/src/hdf5-${{ matrix.hdf5 }}.tar.bz2
63
+ tar -jxf hdf5-${{ matrix.hdf5 }}.tar.bz2
64
+ fi
62
65
pushd hdf5-${{ matrix.hdf5 }}
63
66
./configure --disable-static --enable-shared --prefix=${HOME}/environments/${{ matrix.hdf5 }} --enable-hl --with-szlib
64
67
make -j
65
68
make install -j
66
69
popd
67
-
70
+
71
+ - name : Check libhdf5-serial-${{ matrix.hdf5}}
72
+ run : |
73
+ ls ${HOME}/environments/**
68
74
69
75
build-deps-parallel :
70
76
71
- runs-on : ubuntu-latest
77
+ runs-on : ubuntu-22.04
72
78
73
79
strategy :
74
80
matrix :
90
96
uses : actions/cache@v4
91
97
with :
92
98
path : ~/environments/${{ matrix.hdf5 }}
93
- key : hdf5-parallel-${{ runner.os }}-${{ matrix.hdf5 }}
94
-
99
+ key : hdf5-parallel-${{ runner.os }}-${{ matrix.hdf5 }}-ubuntu-22.04
95
100
96
101
- name : Build libhdf5-${{ matrix.hdf5 }}-pnetcdf-1.12.3
97
102
if : steps.cache-hdf5.outputs.cache-hit != 'true'
@@ -105,9 +110,15 @@ jobs:
105
110
make -j
106
111
make install -j
107
112
popd
113
+ if [ "${{ matrix.hdf5 }}" = "1.14.5" ]; then
114
+ wget https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5_1.14.5.tar.gz
115
+ tar -zxf hdf5_1.14.5.tar.gz
116
+ mv hdf5_1.14.5 hdf5-1.14.5
117
+ else
118
+ wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-$(echo ${{ matrix.hdf5 }} | cut -d. -f 1,2)/hdf5-${{ matrix.hdf5 }}/src/hdf5-${{ matrix.hdf5 }}.tar.bz2
119
+ tar -jxf hdf5-${{ matrix.hdf5 }}.tar.bz2
120
+ fi
108
121
109
- wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-$(echo ${{ matrix.hdf5 }} | cut -d. -f 1,2)/hdf5-${{ matrix.hdf5 }}/src/hdf5-${{ matrix.hdf5 }}.tar.bz2
110
- tar -jxf hdf5-${{ matrix.hdf5 }}.tar.bz2
111
122
pushd hdf5-${{ matrix.hdf5 }}
112
123
CC=mpicc ./configure --disable-static --enable-shared --prefix=${HOME}/environments/${{ matrix.hdf5 }} --enable-hl --with-szlib --enable-parallel
113
124
make -j
@@ -120,6 +131,12 @@ jobs:
120
131
make -j
121
132
make install -j
122
133
popd
134
+
135
+ - name : Check libhdf5-parallel-${{ matrix.hdf5}}
136
+ run : |
137
+ ls ${HOME}/environments/**
138
+ echo ""
139
+ mpicc -v
123
140
124
141
# ####
125
142
# One-Off Autotools-based tests.
@@ -131,11 +148,10 @@ jobs:
131
148
132
149
needs : build-deps-serial
133
150
134
-
135
151
strategy :
136
152
matrix :
137
153
hdf5 : [ 1.14.3 ]
138
- runs-on : [ ubuntu-latest ]
154
+ runs-on : [ ubuntu-22.04 ]
139
155
140
156
runs-on : ${{ matrix.runs-on }}
141
157
steps :
@@ -164,7 +180,7 @@ jobs:
164
180
uses : actions/cache@v4
165
181
with :
166
182
path : ~/environments/${{ matrix.hdf5 }}
167
- key : hdf5-${{ runner.os }}-${{ matrix.hdf5 }}
183
+ key : hdf5-${{ runner.os }}-${{ matrix.hdf5 }}-ubuntu-22.04
168
184
169
185
- name : Check Cache
170
186
shell : bash -l {0}
@@ -229,11 +245,10 @@ jobs:
229
245
230
246
needs : build-deps-serial
231
247
232
-
233
248
strategy :
234
249
matrix :
235
250
hdf5 : [ 1.14.3 ]
236
- runs-on : [ ubuntu-latest ]
251
+ runs-on : [ ubuntu-22.04 ]
237
252
238
253
runs-on : ${{ matrix.runs-on }}
239
254
steps :
@@ -262,7 +277,7 @@ jobs:
262
277
uses : actions/cache@v4
263
278
with :
264
279
path : ~/environments/${{ matrix.hdf5 }}
265
- key : hdf5-${{ runner.os }}-${{ matrix.hdf5 }}
280
+ key : hdf5-${{ runner.os }}-${{ matrix.hdf5 }}-ubuntu-22.04
266
281
267
282
- name : Check Cache
268
283
shell : bash -l {0}
@@ -327,7 +342,7 @@ jobs:
327
342
nc-ac-tests-oneoff-parallel :
328
343
329
344
needs : build-deps-parallel
330
- runs-on : ubuntu-latest
345
+ runs-on : ubuntu-22.04
331
346
332
347
strategy :
333
348
matrix :
@@ -353,7 +368,7 @@ jobs:
353
368
uses : actions/cache@v4
354
369
with :
355
370
path : ~/environments/${{ matrix.hdf5 }}
356
- key : hdf5-parallel-${{ runner.os }}-${{ matrix.hdf5 }}
371
+ key : hdf5-parallel-${{ runner.os }}-${{ matrix.hdf5 }}-ubuntu-22.04
357
372
358
373
- name : Check Cache
359
374
shell : bash -l {0}
@@ -384,17 +399,17 @@ jobs:
384
399
385
400
- name : Build Library and Utilities
386
401
shell : bash -l {0}
387
- run : CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} CC=mpicc make -j
402
+ run : CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} CC=mpicc make -j 4
388
403
if : ${{ success() }}
389
404
390
405
- name : Build Tests
391
406
shell : bash -l {0}
392
- run : CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} CC=mpicc make check TESTS="" -j
407
+ run : CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} CC=mpicc make check TESTS="" -j 4
393
408
if : ${{ success() }}
394
409
395
410
- name : Run Tests
396
411
shell : bash -l {0}
397
- run : CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} CC=mpicc make check -j
412
+ run : CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} CC=mpicc make check -j 4
398
413
if : ${{ success() }}
399
414
400
415
@@ -407,7 +422,7 @@ jobs:
407
422
nc-cmake-tests-oneoff-serial-shared :
408
423
409
424
needs : build-deps-serial
410
- runs-on : ubuntu-latest
425
+ runs-on : ubuntu-22.04
411
426
412
427
strategy :
413
428
matrix :
@@ -437,7 +452,7 @@ jobs:
437
452
uses : actions/cache@v4
438
453
with :
439
454
path : ~/environments/${{ matrix.hdf5 }}
440
- key : hdf5-${{ runner.os }}-${{ matrix.hdf5 }}
455
+ key : hdf5-${{ runner.os }}-${{ matrix.hdf5 }}-ubuntu-22.04
441
456
442
457
- name : Check Cache
443
458
shell : bash -l {0}
@@ -471,14 +486,14 @@ jobs:
471
486
shell : bash -l {0}
472
487
run : |
473
488
cd build
474
- LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ctest --output-on-failure -j 12 .
489
+ LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ctest --output-on-failure -j 4 .
475
490
if : ${{ success() }}
476
491
477
492
- name : Verbose Output if CTest Failure
478
493
shell : bash -l {0}
479
494
run : |
480
495
cd build
481
- LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ctest -j 12 --rerun-failed --output-on-failure -VV
496
+ LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ctest -j 4 --rerun-failed --output-on-failure -VV
482
497
if : ${{ failure() }}
483
498
484
499
# #
@@ -487,7 +502,7 @@ jobs:
487
502
nc-cmake-tests-oneoff-serial-static :
488
503
489
504
needs : build-deps-serial
490
- runs-on : ubuntu-latest
505
+ runs-on : ubuntu-22.04
491
506
492
507
strategy :
493
508
matrix :
@@ -518,7 +533,7 @@ jobs:
518
533
uses : actions/cache@v4
519
534
with :
520
535
path : ~/environments/${{ matrix.hdf5 }}
521
- key : hdf5-${{ runner.os }}-${{ matrix.hdf5 }}
536
+ key : hdf5-${{ runner.os }}-${{ matrix.hdf5 }}-ubuntu-22.04
522
537
523
538
- name : Check Cache
524
539
shell : bash -l {0}
@@ -569,7 +584,7 @@ jobs:
569
584
nc-cmake-tests-oneoff-parallel :
570
585
571
586
needs : build-deps-parallel
572
- runs-on : ubuntu-latest
587
+ runs-on : ubuntu-22.04
573
588
574
589
strategy :
575
590
matrix :
@@ -599,7 +614,7 @@ jobs:
599
614
uses : actions/cache@v4
600
615
with :
601
616
path : ~/environments/${{ matrix.hdf5 }}
602
- key : hdf5-parallel-${{ runner.os }}-${{ matrix.hdf5 }}
617
+ key : hdf5-parallel-${{ runner.os }}-${{ matrix.hdf5 }}-ubuntu-22.04
603
618
604
619
- name : Check Cache
605
620
shell : bash -l {0}
@@ -654,7 +669,7 @@ jobs:
654
669
use_nc4 : [ nc3, nc4 ]
655
670
use_dap : [ dap_off, dap_on ]
656
671
use_nczarr : [ nczarr_off, nczarr_on ]
657
- runs-on : [ ubuntu-latest ]
672
+ runs-on : [ ubuntu-22.04 ]
658
673
659
674
runs-on : ${{ matrix.runs-on }}
660
675
steps :
@@ -717,7 +732,7 @@ jobs:
717
732
uses : actions/cache@v4
718
733
with :
719
734
path : ~/environments/${{ matrix.hdf5 }}
720
- key : hdf5-${{ runner.os }}-${{ matrix.hdf5 }}
735
+ key : hdf5-${{ runner.os }}-${{ matrix.hdf5 }}-ubuntu-22.04
721
736
722
737
- name : Check Cache
723
738
shell : bash -l {0}
@@ -813,7 +828,7 @@ jobs:
813
828
nc-cmake :
814
829
815
830
needs : [ nc-cmake-tests-oneoff-serial-shared, nc-cmake-tests-oneoff-serial-static, nc-ac-tests-oneoff-serial-shared, nc-ac-tests-oneoff-serial-static, nc-cmake-tests-oneoff-parallel, nc-ac-tests-oneoff-parallel ]
816
- runs-on : ubuntu-latest
831
+ runs-on : ubuntu-22.04
817
832
818
833
strategy :
819
834
matrix :
@@ -860,7 +875,7 @@ jobs:
860
875
uses : actions/cache@v4
861
876
with :
862
877
path : ~/environments/${{ matrix.hdf5 }}
863
- key : hdf5-${{ runner.os }}-${{ matrix.hdf5 }}
878
+ key : hdf5-${{ runner.os }}-${{ matrix.hdf5 }}-ubuntu-22.04
864
879
865
880
- name : Check Cache
866
881
shell : bash -l {0}
0 commit comments