Skip to content

Commit

Permalink
Linux.yml: add GCC 14 test (#142)
Browse files Browse the repository at this point in the history
* Linux.yml: add GCC 14 test

* MacOS.yml: move to GCC 12

* fix yaml fmt
  • Loading branch information
AlexanderRichert-NOAA authored Oct 5, 2024
1 parent 1174d36 commit 4d2b04b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 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
4 changes: 2 additions & 2 deletions .github/workflows/MacOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
MacOS:
runs-on: macos-latest
env:
FC: gfortran-11
CC: gcc-11
FC: gfortran-12
CC: gcc-12

steps:

Expand Down

0 comments on commit 4d2b04b

Please sign in to comment.