Skip to content

Commit f0cb9e9

Browse files
committed
Update ubuntu runners to fix CI
This drops testing GCC-7, the minimum tested version is now GCC-9
1 parent ddc5704 commit f0cb9e9

1 file changed

Lines changed: 16 additions & 27 deletions

File tree

.github/workflows/gfortran.yml

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ jobs:
4747
4848
basic_build:
4949
name: Basic build
50-
runs-on: ubuntu-20.04
50+
runs-on: ubuntu-22.04
5151
strategy:
5252
fail-fast: false
5353
matrix:
54-
gcc_v: [7, 9, 10]
54+
gcc_v: [9, 12]
5555
env:
5656
FC: gfortran
5757
GCC_V: ${{ matrix.gcc_v}}
@@ -62,12 +62,6 @@ jobs:
6262
with:
6363
fetch-depth: 2
6464

65-
- name: Install GCC-7
66-
if: matrix.gcc_v == 7
67-
run: |
68-
sudo apt install gcc-7 gfortran-7 g++-7
69-
echo "ABIN_FFLAGS=${ABIN_FFLAGS/-fprofile-abs-path/}" >> $GITHUB_ENV
70-
7165
- name: Set GFortran version
7266
run: |
7367
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
@@ -81,7 +75,7 @@ jobs:
8175
with:
8276
path: ~/pfunit/build/installed
8377
# To force a pFUnit rebuild (bust the cache), make a change to install_pfunit.sh
84-
key: ${{ runner.os }}-ubuntu20.04-pfunit-gfortran${{ env.GCC_V }}-${{ hashFiles('dev_scripts/install_pfunit.sh') }}
78+
key: ${{ runner.os }}-ubuntu22.04-pfunit-gfortran${{ env.GCC_V }}-${{ hashFiles('dev_scripts/install_pfunit.sh') }}
8579

8680
- name: Download and build pFUnit
8781
if: steps.pfunit-cache.outputs.cache-hit != 'true'
@@ -157,7 +151,7 @@ jobs:
157151

158152
tcpb_build:
159153
name: TCPB build
160-
runs-on: ubuntu-20.04
154+
runs-on: ubuntu-22.04
161155
needs: basic_build
162156
env:
163157
FC: gfortran
@@ -176,7 +170,7 @@ jobs:
176170
with:
177171
path: ~/tcpb-cpp/lib
178172
# To force a rebuild (bust the cache), make a change to install_tcpb.sh
179-
key: ${{ runner.os }}-ubuntu20.04-tcpb-gfortran-default-${{ hashFiles('dev_scripts/install_tcpb.sh') }}
173+
key: ${{ runner.os }}-ubuntu22.04-tcpb-gfortran-default-${{ hashFiles('dev_scripts/install_tcpb.sh') }}
180174

181175
- name: Download and build tcpb_cpp
182176
if: steps.tcpb-cache.outputs.cache-hit != 'true'
@@ -205,7 +199,7 @@ jobs:
205199
strategy:
206200
fail-fast: false
207201
matrix:
208-
gcc_v: [9, 12]
202+
gcc_v: [12]
209203
env:
210204
FC: gfortran
211205
GCC_V: ${{ matrix.gcc_v}}
@@ -294,13 +288,13 @@ jobs:
294288

295289
mpich_build:
296290
name: MPICH build
297-
runs-on: ubuntu-20.04
291+
runs-on: ubuntu-22.04
298292
timeout-minutes: 25
299293
needs: basic_build
300294
strategy:
301295
fail-fast: false
302296
matrix:
303-
gcc_v: [7, 10]
297+
gcc_v: [10]
304298
mpich_v: ["3.4.3", "4.0.2"]
305299
env:
306300
# To speed-up MPICH build
@@ -314,23 +308,18 @@ jobs:
314308
with:
315309
fetch-depth: 2
316310

317-
- name: Install GCC-7
318-
if: matrix.gcc_v == 7
319-
run: |
320-
sudo apt install gcc-7 gfortran-7 g++-7
321-
echo "ABIN_FFLAGS=${ABIN_FFLAGS/-fprofile-abs-path/}" >> $GITHUB_ENV
322-
323311
- name: Set GFortran version
324312
run: |
325313
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
326314
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
327315
--slave /usr/bin/gcov gcov /usr/bin/gcov-${GCC_V}
316+
328317
- name: MPICH build Cache
329318
id: mpich-cache
330319
uses: actions/cache@v4
331320
with:
332321
path: ~/mpich/${{ env.MPICH_V }}/install
333-
key: ${{runner.os}}-ubuntu20.04-mpich${{ env.MPICH_V }}-gfortran${{ env.GCC_V }}-${{hashFiles('dev_scripts/install_mpich.sh')}}
322+
key: ${{runner.os}}-ubuntu22.04-mpich${{ env.MPICH_V }}-gfortran${{ env.GCC_V }}-${{hashFiles('dev_scripts/install_mpich.sh')}}
334323

335324
- name: Build and Install MPICH
336325
if: steps.mpich-cache.outputs.cache-hit != 'true'
@@ -362,7 +351,7 @@ jobs:
362351

363352
openmpi_build:
364353
name: OpenMPI build
365-
runs-on: ubuntu-20.04
354+
runs-on: ubuntu-22.04
366355
timeout-minutes: 25
367356
needs: basic_build
368357
strategy:
@@ -383,7 +372,7 @@ jobs:
383372
uses: actions/cache@v4
384373
with:
385374
path: ~/openmpi/${{ env.OPENMPI_V }}/install
386-
key: ${{runner.os}}-ubuntu20.04-openmpi${{ env.OPENMPI_V }}-gfortran-default-${{hashFiles('dev_scripts/install_openmpi.sh')}}
375+
key: ${{runner.os}}-ubuntu22.04-openmpi${{ env.OPENMPI_V }}-gfortran-default-${{hashFiles('dev_scripts/install_openmpi.sh')}}
387376

388377
- name: Build and Install OpenMPI
389378
if: steps.openmpi-cache.outputs.cache-hit != 'true'
@@ -404,12 +393,12 @@ jobs:
404393

405394
plumed_build:
406395
name: PLUMED build
407-
runs-on: ubuntu-20.04
396+
runs-on: ubuntu-22.04
408397
needs: basic_build
409398
strategy:
410399
fail-fast: false
411400
matrix:
412-
plumed_v: [2.7.6, 2.8.2]
401+
plumed_v: [2.7.6, 2.9.3]
413402

414403
env:
415404
PLUMED_V: ${{ matrix.plumed_v}}
@@ -427,7 +416,7 @@ jobs:
427416
uses: actions/cache@v4
428417
with:
429418
path: ~/plumed/${{ env.PLUMED_V }}/install
430-
key: ${{runner.os}}-ubuntu20.04-plumed${{env.PLUMED_V}}-gcc-default-${{hashFiles('dev_scripts/install_plumed.sh')}}
419+
key: ${{runner.os}}-ubuntu22.04-plumed${{env.PLUMED_V}}-gcc-default-${{hashFiles('dev_scripts/install_plumed.sh')}}
431420

432421
- name: Build and Install PLUMED
433422
if: steps.plumed-cache.outputs.cache-hit != 'true'
@@ -438,7 +427,7 @@ jobs:
438427
uses: actions/cache@v4
439428
with:
440429
path: ~/pfunit/build/installed
441-
key: ${{ runner.os }}-ubuntu20.04-pfunit-gfortran-default-${{ hashFiles('dev_scripts/install_pfunit.sh') }}
430+
key: ${{ runner.os }}-ubuntu22.04-pfunit-gfortran-default-${{ hashFiles('dev_scripts/install_pfunit.sh') }}
442431

443432
- name: Download and build pFUnit
444433
if: steps.pfunit-cache.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)