File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,7 @@ concurrency:
14
14
15
15
jobs :
16
16
Linux :
17
- runs-on : ubuntu-latest
18
- env :
19
- FC : gfortran
20
- CC : gcc
17
+ runs-on : ubuntu-24.04
21
18
strategy :
22
19
matrix :
23
20
config :
@@ -27,13 +24,23 @@ jobs:
27
24
- {
28
25
options : " -DBUILD_SHARED_LIBS=ON"
29
26
}
27
+ gcc-version : [12]
28
+ include :
29
+ - gcc-version : 14
30
30
31
31
steps :
32
32
- name : checkout
33
33
uses : actions/checkout@v4
34
34
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
+
35
41
- name : build
36
42
run : |
43
+ export CC=gcc-${{ matrix.gcc-version }} ; export FC=gfortran-${{ matrix.gcc-version }}
37
44
cmake -B build ${{ matrix.config.options }} -DCMAKE_INSTALL_PREFIX=~/install
38
45
cmake --build build --parallel 2 --verbose
39
46
Original file line number Diff line number Diff line change 16
16
MacOS :
17
17
runs-on : macos-latest
18
18
env :
19
- FC : gfortran-11
20
- CC : gcc-11
19
+ FC : gfortran-12
20
+ CC : gcc-12
21
21
22
22
steps :
23
23
You can’t perform that action at this time.
0 commit comments