Merge pull request #110 from PalamaraLab/dependabot/github_actions/ac… #61
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: "Tests on macOS" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-test: | |
| name: Tests on macOS | |
| runs-on: macos-13 | |
| steps: | |
| - name: checkout repo & submodules | |
| uses: actions/checkout@v5 | |
| - name: install system packages | |
| run: brew install boost | |
| - name: make build directory | |
| run: mkdir build_dir | |
| - name: cmake configure | |
| run: cmake .. -DENABLE_TESTING=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_COMPILER=$(brew --prefix llvm@15)/bin/clang++ -DCMAKE_C_COMPILER=$(brew --prefix llvm@15)/bin/clang | |
| working-directory: build_dir | |
| - name: cmake build | |
| run: cmake --build . --parallel 2 | |
| working-directory: build_dir | |
| - name: cmake test | |
| run: ctest --no-tests=error -j2 --output-on-failure | |
| working-directory: build_dir |