bool: nvfortran workaround #38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci_macos | |
env: | |
HOMEBREW_NO_INSTALL_CLEANUP: 1 | |
CTEST_NO_TESTS_ACTION: error | |
CTEST_PARALLEL_LEVEL: 0 | |
CMAKE_BUILD_PARALLEL_LEVEL: 4 | |
on: | |
push: | |
paths: | |
- "**.f90" | |
- "**.F90" | |
- "**.c" | |
- "**.cpp" | |
- "**.cmake" | |
- "**/CMakeLists.txt" | |
- ".github/workflows/ci_macos.yml" | |
jobs: | |
mac: | |
# need Apple Silicon for exception handling try_compile detection to work | |
runs-on: macos-14 | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
c: [{cc: clang, cxx: clang++}, {cc: gcc-13, cxx: g++-13}] | |
env: | |
FC: gfortran-13 | |
CC: ${{ matrix.c.cc }} | |
CXX: ${{ matrix.c.cxx }} | |
steps: | |
- uses: actions/checkout@v4 | |
- run: brew install ninja | |
- run: sudo xcode-select --switch /Applications/Xcode_15.1.app | |
if: ${{ matrix.c.cc == 'gcc-13' }} | |
# https://docs.brew.sh/Xcode | |
# https://github.com/Homebrew/brew/blob/HEAD/Library/Homebrew/os/mac/xcode.rb#L20 | |
- run: cmake --preset multi | |
- run: cat build/CMakeFiles/CMakeConfigureLog.yaml | |
if: ${{ failure() }} | |
- run: cmake --build --preset release | |
- run: cmake --build --preset release --parallel 1 | |
if: ${{ failure() }} | |
- run: ctest --preset release |