Skip to content

Commit

Permalink
Merge pull request #34 from AlexanderRichert-NOAA/gcc_testing_oct24
Browse files Browse the repository at this point in the history
Add GCC 14 testing
  • Loading branch information
edwardhartnett authored Oct 5, 2024
2 parents fb27154 + 53f9083 commit d6cd250
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@ 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 ${{ matrix.gcc-version }}) ]; then
sudo apt-get install gcc-${{ matrix.gcc-version }} gfortran-${{ matrix.gcc-version }}
fi
echo "CC=gcc-${{ matrix.gcc-version }}" >> $GITHUB_ENV
echo "FC=gfortran-${{ matrix.gcc-version }}" >> $GITHUB_ENV
- name: checkout-pfunit
uses: actions/checkout@v4
with:
Expand All @@ -21,7 +29,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/pfunit
key: pfunit-${{ runner.os }}-${{ hashFiles('pfunit/VERSION') }}
key: pfunit-${{ runner.os }}-${{ hashFiles('pfunit/VERSION') }}-gcc${{ matrix.gcc-version }}

- name: build-pfunit
if: steps.cache-pfunit.outputs.cache-hit != 'true'
Expand Down

0 comments on commit d6cd250

Please sign in to comment.