Skip to content

Commit 3c7d8b9

Browse files
authored
Added Setup-Fortran step
1 parent d5d8d1d commit 3c7d8b9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/cmake-multi-platform.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ jobs:
2323
#
2424
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
2525
matrix:
26-
os: [ubuntu-latest, windows-latest]
26+
# os: [ubuntu-latest, windows-latest]
27+
os: [windows-latest]
2728
build_type: [Release]
2829
c_compiler: [gcc, clang, cl]
30+
toolchain:
31+
- {compiler: intel-classic, version: '2021.10'}
2932
include:
3033
- os: windows-latest
3134
c_compiler: cl
@@ -54,13 +57,20 @@ jobs:
5457
run: |
5558
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
5659
60+
- uses: fortran-lang/setup-fortran@v1
61+
id: setup-fortran
62+
with:
63+
compiler: ${{ matrix.toolchain.compiler }}
64+
version: ${{ matrix.toolchain.version }}
65+
5766
- name: Configure CMake
5867
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
5968
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
6069
run: >
6170
cmake -B ${{ steps.strings.outputs.build-output-dir }}
6271
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
6372
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
73+
-DCMAKE_Fortran_COMPILER=${{ steps.setup-fortran.outputs.fc }}
6474
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
6575
-S ${{ github.workspace }}
6676

0 commit comments

Comments
 (0)