Skip to content

Commit

Permalink
Linux_options.yml: add GCC 12 & 14 testing (#236)
Browse files Browse the repository at this point in the history
* Linux_options.yml: add GCC 12 & 14 testing

* set gcc version for build deps too

* MacOS.yml: remove gcc 11

* add cache key to build deps

* test _8 with GCC 14 and 12
  • Loading branch information
AlexanderRichert-NOAA authored Oct 3, 2024
1 parent add5553 commit 880cc3e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/Linux_options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,33 @@ on:

jobs:
Linux_options:
runs-on: ubuntu-latest
env:
FC: gfortran-11
CC: gcc-11
runs-on: ubuntu-24.04
strategy:
matrix:
options: ['-DBUILD_D=OFF', '-DBUILD_4=OFF -DBUILD_DEPRECATED=ON -DBUILD_WITH_BUFR=ON', '-DBUILD_SHARED_LIBS=ON']
options: ['-DBUILD_D=OFF -DBUILD_8=ON', '-DBUILD_4=OFF -DBUILD_DEPRECATED=ON -DBUILD_WITH_BUFR=ON', '-DBUILD_SHARED_LIBS=ON']
gcc-version: [12]
include:
- gcc-version: 14
options: '-DBUILD_8=ON'

steps:


- 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
echo "CC=gcc-${{ matrix.gcc-version }}" >> $GITHUB_ENV
echo "FC=gfortran-${{ matrix.gcc-version }}" >> $GITHUB_ENV
- name: "Build dependencies"
uses: NOAA-EMC/ci-build-nceplibs@develop
with:
bacio-version: v2.6.0
bacio-cmake-args: -DBUILD_TESTING=OFF ${{ matrix.options == '-DBUILD_SHARED_LIBS=ON' && matrix.options || '' }}
bufr-version: bufr_v12.0.0
bufr-cmake-args: -DBUILD_TESTING=OFF ${{ matrix.options == '-DBUILD_SHARED_LIBS=ON' && matrix.options || '' }}
key-suffix: -gcc${{ matrix.gcc-version }}

- name: checkout-w3emc
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/MacOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
FC: ${{ matrix.compiler }}
strategy:
matrix:
compiler: [gfortran-11, gfortran-12]
compiler: [gfortran-12]
bacio-version: [2.4.1, 2.5.0, 2.6.0]

steps:
Expand Down

0 comments on commit 880cc3e

Please sign in to comment.