Skip to content

Commit

Permalink
Linux.yml: test with gcc 12 & 14 (#255)
Browse files Browse the repository at this point in the history
* Linux.yml: test with gcc 12 & 14

* debug

* move macos CI to gcc-12
  • Loading branch information
AlexanderRichert-NOAA authored Oct 3, 2024
1 parent ab55010 commit 8373ad5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,26 @@ on:

jobs:
Linux:
runs-on: ubuntu-latest
env:
FC: gfortran-10
CC: gcc-10
runs-on: ubuntu-24.04

strategy:
matrix:
openmp: [ ON, OFF ]
options: [ -DBUILD_D=OFF, -DBUILD_4=OFF, -DBUILD_8=ON ]
gcc-version: [12]
include:
- openmp: ON
options: -DBUILD_8=ON
gcc-version: 14

steps:

- name: get-gcc
run: |
if [ -z $(type -P gcc-${{ matrix.gcc-version }}) ]; then
sudo apt install gcc-${{ matrix.gcc-version }}
fi
- name: checkout
uses: actions/checkout@v4
with:
Expand All @@ -34,6 +42,7 @@ jobs:
- name: build
run: |
sudo apt install libopenblas-serial-dev
export CC=gcc-${{ matrix.gcc-version }} ; export FC=gfortran-${{ matrix.gcc-version }}
cmake -S ip -B ip/build -DCMAKE_PREFIX_PATH="~/" -DOPENMP=${{ matrix.openmp }} ${{ matrix.options }} -DCMAKE_INSTALL_PREFIX=~/install -DBLA_VENDOR=OpenBLAS
cmake --build ip/build --parallel 2 --verbose
cmake --install ip/build
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
strategy:
matrix:
openmp: [ ON, OFF ]
Expand Down

0 comments on commit 8373ad5

Please sign in to comment.