Skip to content

Commit 4d2b04b

Browse files
Linux.yml: add GCC 14 test (#142)
* Linux.yml: add GCC 14 test * MacOS.yml: move to GCC 12 * fix yaml fmt
1 parent 1174d36 commit 4d2b04b

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/Linux.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ concurrency:
1414

1515
jobs:
1616
Linux:
17-
runs-on: ubuntu-latest
18-
env:
19-
FC: gfortran
20-
CC: gcc
17+
runs-on: ubuntu-24.04
2118
strategy:
2219
matrix:
2320
config:
@@ -27,13 +24,23 @@ jobs:
2724
- {
2825
options: "-DBUILD_SHARED_LIBS=ON"
2926
}
27+
gcc-version: [12]
28+
include:
29+
- gcc-version: 14
3030

3131
steps:
3232
- name: checkout
3333
uses: actions/checkout@v4
3434

35+
- name: get-gcc
36+
run: |
37+
if [ -z $(type -P gcc-${{ matrix.gcc-version }}) ]; then
38+
sudo apt-get install gcc-${{ matrix.gcc-version }} gfortran-${{ matrix.gcc-version }}
39+
fi
40+
3541
- name: build
3642
run: |
43+
export CC=gcc-${{ matrix.gcc-version }} ; export FC=gfortran-${{ matrix.gcc-version }}
3744
cmake -B build ${{ matrix.config.options }} -DCMAKE_INSTALL_PREFIX=~/install
3845
cmake --build build --parallel 2 --verbose
3946

.github/workflows/MacOS.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
MacOS:
1717
runs-on: macos-latest
1818
env:
19-
FC: gfortran-11
20-
CC: gcc-11
19+
FC: gfortran-12
20+
CC: gcc-12
2121

2222
steps:
2323

0 commit comments

Comments
 (0)