From 4db44716e023cdd21430bd6bc233de92317872d8 Mon Sep 17 00:00:00 2001 From: AlexanderRichert-NOAA Date: Tue, 1 Oct 2024 18:48:15 +0000 Subject: [PATCH 1/2] main.yml: add gcc 12 & 14 testing --- .github/workflows/main.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6ceed8c..ae2a1a3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,12 +4,19 @@ on: [push, pull_request] jobs: build: runs-on: ubuntu-latest - env: - FC: gfortran-11 - CC: gcc-11 + + strategy: + matrix: + gcc-version: [12,14] steps: + - name: get-gcc + run: | + if [ -z $(type -P gcc-${{ matrix.gcc-version }}) ]; then + sudo apt install gcc-${{ matrix.gcc-version }} + fi + - name: checkout-pfunit uses: actions/checkout@v4 with: @@ -26,6 +33,7 @@ jobs: - name: build-pfunit if: steps.cache-pfunit.outputs.cache-hit != 'true' run: | + export CC=gcc-${{ matrix.gcc-version }} ; export FC=gfortran-${{ matrix.gcc-version }} cmake -S pfunit -B pfunit/build -DSKIP_MPI=YES -DSKIP_ESMF=YES -DSKIP_FHAMCREST=YES -DCMAKE_INSTALL_PREFIX=~/pfunit cmake --build pfunit/build --parallel 2 --verbose cmake --install pfunit/build From 7e1d9e4200397a39b6dd1250948f0a9486bcec94 Mon Sep 17 00:00:00 2001 From: AlexanderRichert-NOAA Date: Tue, 1 Oct 2024 18:50:13 +0000 Subject: [PATCH 2/2] ubuntu 24.04 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ae2a1a3..95d0900 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 strategy: matrix: