Skip to content

Commit

Permalink
[CI] testing macOS build with based on fortran-lang/setup-fortran@v1
Browse files Browse the repository at this point in the history
  • Loading branch information
cvanaret committed Nov 17, 2024
1 parent b3f8dd3 commit 8e02a3a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,19 @@ jobs:
matrix:
os: [macos-latest]
architecture: [x64, arm64]
toolchain: {compiler: gcc, version: 12}

steps:
- uses: actions/checkout@v4
- uses: fortran-lang/setup-fortran@v1

- name: Clean up FortranCInterface_VERIFY
# FortranCInterface_VERIFY fails on macOS, but it's not actually needed for the current build
run: sed -i".backup" 's/FortranCInterface_VERIFY(CXX)/# FortranCInterface_VERIFY(CXX)/g' ${{github.workspace}}/CMakeLists.txt

- name: Install gfortran
run: brew install gfortran

- 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 ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_Fortran_COMPILER=/usr/local/bin/gfortran
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_Fortran_COMPILER=${{env.FC}}

- name: Build
# Build your program with the given configuration
Expand Down

0 comments on commit 8e02a3a

Please sign in to comment.