From cdc268e8d5c8077519ffbe18bc1e59b343b63e18 Mon Sep 17 00:00:00 2001 From: Alex Richert Date: Fri, 4 Oct 2024 13:10:36 -0700 Subject: [PATCH] main.yml: add gcc 14 testing --- .github/workflows/main.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d925459..73562da 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,13 +3,21 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest - env: - FC: gfortran - CC: gcc + 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-get install gcc-${{ 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: