From 8e02a3ad081ff27fcff3fdfa0dc5711ddff2f2c1 Mon Sep 17 00:00:00 2001 From: Charlie Vanaret <vanaret@zib.de> Date: Sun, 17 Nov 2024 20:32:32 +0100 Subject: [PATCH] [CI] testing macOS build with based on fortran-lang/setup-fortran@v1 --- .github/workflows/build-macos.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 9b7f8130..9f231f41 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -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