Increase macOS deployment target for intel, bump macOS arm back to 14 #66
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: "Unit tests: macOS" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - '**' | |
| workflow_dispatch: | |
| jobs: | |
| build-and-test: | |
| name: Unit tests on macOS | |
| runs-on: ${{ matrix.os }} | |
| if: ${{ github.event_name == 'pull_request' || github.repository == 'PalamaraLab/ASMC' }} | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: macos-15 | |
| steps: | |
| - name: checkout repo & submodules | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: true | |
| fetch-depth: 0 | |
| - name: install dependencies | |
| run: | | |
| brew install boost zlib | |
| - name: make build directory | |
| run: mkdir -p build_dir | |
| - name: cmake configure | |
| run: cmake .. | |
| working-directory: build_dir | |
| - name: cmake build | |
| run: cmake --build . --parallel 3 --target ASMC_unit_tests | |
| working-directory: build_dir | |
| - name: cmake test | |
| run: ctest -j2 -R Asmc_unit_tests --output-on-failure | |
| working-directory: build_dir |