Skip to content

Commit

Permalink
Added Setup-Fortran step
Browse files Browse the repository at this point in the history
  • Loading branch information
scharlton2 authored Jun 17, 2024
1 parent d5d8d1d commit 3c7d8b9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ jobs:
#
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
matrix:
os: [ubuntu-latest, windows-latest]
# os: [ubuntu-latest, windows-latest]
os: [windows-latest]
build_type: [Release]
c_compiler: [gcc, clang, cl]
toolchain:
- {compiler: intel-classic, version: '2021.10'}
include:
- os: windows-latest
c_compiler: cl
Expand Down Expand Up @@ -54,13 +57,20 @@ jobs:
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: ${{ matrix.toolchain.compiler }}
version: ${{ matrix.toolchain.version }}

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_Fortran_COMPILER=${{ steps.setup-fortran.outputs.fc }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ github.workspace }}
Expand Down

0 comments on commit 3c7d8b9

Please sign in to comment.