Skip to content

Commit

Permalink
Linux.yml: add GCC 14 test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA committed Oct 4, 2024
1 parent 1174d36 commit 142c0c9
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ concurrency:

jobs:
Linux:
runs-on: ubuntu-latest
env:
FC: gfortran
CC: gcc
runs-on: ubuntu-24.04
strategy:
matrix:
config:
Expand All @@ -27,13 +24,23 @@ jobs:
- {
options: "-DBUILD_SHARED_LIBS=ON"
}
gcc-version: [12]
include:
gcc-version: 14

steps:
- name: checkout
uses: actions/checkout@v4

- name: get-gcc
run: |
if [ -z $(type -P gcc-${{ matrix.gcc-version }}) ]; then
sudo apt-get install gcc-${{ matrix.gcc-version }} gfortran-${{ matrix.gcc-version }}
fi
- name: build
run: |
export CC=gcc-${{ matrix.gcc-version }} ; export FC=gfortran-${{ matrix.gcc-version }}
cmake -B build ${{ matrix.config.options }} -DCMAKE_INSTALL_PREFIX=~/install
cmake --build build --parallel 2 --verbose
Expand Down

0 comments on commit 142c0c9

Please sign in to comment.