Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GCC 14 testing #34

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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:
Expand All @@ -21,7 +29,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/pfunit
key: pfunit-${{ runner.os }}-gcc-1
key: pfunit-${{ runner.os }}-gcc${{ matrix.gcc-version }}-1

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