Converted Boost.Test into Doctest #8
Workflow file for this run
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: Build for macOS-13 | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - src/** | |
| - test/** | |
| - benchmark/** | |
| - cmake/** | |
| - CMakeLists.txt | |
| - CMakePresets.json | |
| - .github/workflows/build-macos-13.yml | |
| pull_request: | |
| branches: [main] | |
| types: [synchronize, opened, reopened, ready_for_review] | |
| paths: | |
| - src/** | |
| - test/** | |
| - benchmark/** | |
| - cmake/** | |
| - CMakeLists.txt | |
| - CMakePresets.json | |
| - .github/workflows/build-macos-13.yml | |
| workflow_dispatch: | |
| jobs: | |
| macOS-13: | |
| runs-on: macos-13 | |
| env: | |
| CMAKE_GENERATOR: "Ninja Multi-Config" | |
| CTEST_OUTPUT_ON_FAILURE: 1 | |
| BUILD_DIR: build | |
| steps: | |
| - uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '14.3.1' | |
| - name: Setup Runner Environment | |
| run: | | |
| uname -a | |
| xcrun --show-sdk-version | |
| CORES=$(sysctl -n hw.ncpu) | |
| echo "CMAKE_BUILD_PARALLEL_LEVEL=$CORES" >> $GITHUB_ENV | |
| echo "CTEST_TEST_PARALLEL_LEVEL=$CORES" >> $GITHUB_ENV | |
| echo "CTEST_TEST_LOAD=$CORES" >> $GITHUB_ENV | |
| - name: Install Build Tools | |
| run: | | |
| brew update | |
| brew install cmake ninja google-sparsehash | |
| - uses: actions/checkout@v4 | |
| - name: Configure Multi-Config | |
| run: cmake -B "$BUILD_DIR" -DPTRIE_BuildTests=ON -DPTRIE_BuildBenchmark=OFF | |
| # - name: Build Debug | |
| # run: cmake --build "$BUILD_DIR" --config Debug | |
| # - name: Test Debug | |
| # run: ctest --test-dir "$BUILD_DIR" -C Debug | |
| - name: Build Release | |
| run: cmake --build "$BUILD_DIR" --config Release | |
| - name: Test Release | |
| run: ctest --test-dir "$BUILD_DIR" -C Release |