Skip to content

Commit

Permalink
Merge pull request #40 from AlexanderRichert-NOAA/gcc_testing_oct24
Browse files Browse the repository at this point in the history
Add GCC 12 & 14 testing
  • Loading branch information
edwardhartnett authored Oct 2, 2024
2 parents c13e17b + 7e1d9e4 commit 3caa451
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@ on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
env:
FC: gfortran-11
CC: gcc-11
runs-on: ubuntu-24.04

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:
Expand All @@ -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
Expand Down

0 comments on commit 3caa451

Please sign in to comment.