@@ -17,18 +17,46 @@ jobs:
17
17
# This workflow contains a single job called "test-suite"
18
18
test-suite :
19
19
# The type of runner that the job will run on
20
- runs-on : ubuntu-latest
20
+ runs-on : ${{ matrix.os }}
21
21
strategy :
22
22
fail-fast : false
23
- matrix :
24
- std : ["f2008", "f2018"]
23
+ matrix :
24
+ os :
25
+ - ubuntu-latest
26
+ # - macos-latest
27
+ # - windows-latest
28
+ toolchain :
29
+ - {compiler: gcc, version: 13}
30
+ # - {compiler: intel, version: '2023.2'}
31
+ - {compiler: intel-classic, version: '2021.10'}
32
+ # - {compiler: nvidia-hpc, version: '23.11'}
33
+ include :
34
+ - os : ubuntu-latest
35
+ toolchain : {compiler: gcc, version: 12}
36
+ exclude :
37
+ - os : macos-latest
38
+ toolchain : {compiler: intel, version: '2023.2'}
39
+ # - os: macos-latest
40
+ # toolchain: {compiler: nvidia-hpc, version: '23.11'}
41
+ # - os: windows-latest
42
+ # toolchain: {compiler: nvidia-hpc, version: '23.11'}
43
+ std : ["f2008", "f2018"]
25
44
26
45
# Steps represent a sequence of tasks that will be executed as part of the job
27
46
steps :
28
47
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
29
48
- name : Checkout code
30
49
uses : actions/checkout@v4
31
50
51
+ - name : setup-fortran
52
+ uses : fortran-lang/setup-fortran@v1
53
+ with :
54
+ compiler : ${{ matrix.toolchain.compiler }}
55
+ version : ${{ matrix.toolchain.version }}
56
+ run : |
57
+ ${{ env.FC }} ... # environment vars FC, CC, and CXX are set
58
+ ${{ steps.setup-fortran.outputs.fc }} ... # outputs work too
59
+
32
60
- name : Install Python
33
61
uses : actions/setup-python@v5
34
62
with :
0 commit comments