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