File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,21 @@ on: [push, pull_request]
3
3
4
4
jobs :
5
5
build :
6
- runs-on : ubuntu-latest
7
- env :
8
- FC : gfortran-11
9
- CC : gcc-11
6
+ runs-on : ubuntu-24.04
7
+ strategy :
8
+ matrix :
9
+ gcc-version : [12,14]
10
10
11
11
steps :
12
12
13
+ - name : get-gcc
14
+ run : |
15
+ if [ -z $(type -P ${{ matrix.gcc-version }}) ]; then
16
+ sudo apt-get install gcc-${{ matrix.gcc-version }} gfortran-${{ matrix.gcc-version }}
17
+ fi
18
+ echo "CC=gcc-${{ matrix.gcc-version }}" >> $GITHUB_ENV
19
+ echo "FC=gfortran-${{ matrix.gcc-version }}" >> $GITHUB_ENV
20
+
13
21
- name : checkout-pfunit
14
22
uses : actions/checkout@v4
15
23
with :
21
29
uses : actions/cache@v4
22
30
with :
23
31
path : ~/pfunit
24
- key : pfunit-${{ runner.os }}-${{ hashFiles('pfunit/VERSION') }}
32
+ key : pfunit-${{ runner.os }}-${{ hashFiles('pfunit/VERSION') }}-gcc${{ matrix.gcc-version }}
25
33
26
34
- name : build-pfunit
27
35
if : steps.cache-pfunit.outputs.cache-hit != 'true'
You can’t perform that action at this time.
0 commit comments