Skip to content

Commit 8bdf384

Browse files
committed
Update test-suite workflow to use the fortran-lang github action to access intel compilers.
1 parent 549ee97 commit 8bdf384

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

.github/workflows/test_suite.yml

+31-3
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,46 @@ jobs:
1717
# This workflow contains a single job called "test-suite"
1818
test-suite:
1919
# The type of runner that the job will run on
20-
runs-on: ubuntu-latest
20+
runs-on: ${{ matrix.os }}
2121
strategy:
2222
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"]
2544

2645
# Steps represent a sequence of tasks that will be executed as part of the job
2746
steps:
2847
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2948
- name: Checkout code
3049
uses: actions/checkout@v4
3150

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+
3260
- name: Install Python
3361
uses: actions/setup-python@v5
3462
with:

0 commit comments

Comments
 (0)