Skip to content

Commit

Permalink
Merge pull request #153 from AlexanderRichert-NOAA/gcc_testing_oct24
Browse files Browse the repository at this point in the history
Linux.yml: test with multiple gcc versions
  • Loading branch information
AlexanderRichert-NOAA authored Oct 1, 2024
2 parents 951bd06 + 132a58d commit fc70659
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,29 @@ on:

jobs:
Linux:
runs-on: ubuntu-latest
env:
FC: gfortran-11
CC: gcc-11
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 install gcc-${{ matrix.gcc-version }}
fi
- name: checkout
uses: actions/checkout@v4

- name: build
run: |
export CC=gcc-${{ matrix.gcc-version }} ; export FC=gfortran-${{ matrix.gcc-version }}
cmake -B build
cmake --build build --parallel 2 --verbose
- name: test
run: |
set -e
ctest --test-dir build --output-on-failure --rerun-failed --verbose
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:
shared: [ON, OFF]
Expand Down

0 comments on commit fc70659

Please sign in to comment.