|
1 |
| -name: Intel Mac builds |
| 1 | +name: Mac Builds |
2 | 2 |
|
3 | 3 | on: [push, pull_request]
|
4 | 4 |
|
5 | 5 | jobs:
|
6 | 6 | build:
|
7 | 7 | # From macos-14 forward, the baseline "macos-X" image is Arm based,
|
8 |
| - # and not Intel based. Thus this is the newest image we can use for |
9 |
| - # Intel MacOS CI, and there don't seem to be any plans to keep providing |
10 |
| - # the Intel based images for free to OSS projects. |
11 |
| - runs-on: macos-13 |
| 8 | + # and not Intel based. |
| 9 | + runs-on: ${{matrix.image}} |
12 | 10 | strategy:
|
13 | 11 | fail-fast: false
|
14 | 12 | matrix:
|
15 |
| - cxx: |
16 |
| - - clang++ |
| 13 | + image: [macos-13, macos-14, macos-15] |
17 | 14 | build_type: [Debug, Release]
|
18 | 15 | std: [14, 17]
|
19 |
| - include: |
20 |
| - - build_type: Debug |
21 |
| - examples: ON |
22 |
| - extra_tests: ON |
23 | 16 |
|
24 | 17 | steps:
|
25 | 18 | - uses: actions/checkout@v4
|
26 | 19 |
|
27 |
| - - name: Configure build |
28 |
| - working-directory: ${{runner.workspace}} |
29 |
| - env: |
30 |
| - CXX: ${{matrix.cxx}} |
31 |
| - CXXFLAGS: ${{matrix.cxxflags}} |
| 20 | + - name: Configure |
32 | 21 | run: |
|
33 |
| - cmake -Bbuild -S$GITHUB_WORKSPACE \ |
| 22 | + cmake -Bbuild -GNinja \ |
34 | 23 | -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
|
35 | 24 | -DCMAKE_CXX_STANDARD=${{matrix.std}} \
|
36 | 25 | -DCMAKE_CXX_STANDARD_REQUIRED=ON \
|
37 | 26 | -DCATCH_DEVELOPMENT_BUILD=ON \
|
38 |
| - -DCATCH_BUILD_EXAMPLES=${{matrix.examples}} \ |
39 |
| - -DCATCH_BUILD_EXTRA_TESTS=${{matrix.examples}} |
| 27 | + -DCATCH_BUILD_EXAMPLES=ON \ |
| 28 | + -DCATCH_BUILD_EXTRA_TESTS=ON |
40 | 29 |
|
41 |
| - - name: Build tests + lib |
42 |
| - working-directory: ${{runner.workspace}}/build |
43 |
| - run: make -j `sysctl -n hw.ncpu` |
| 30 | + - name: Build |
| 31 | + run: cmake --build build |
44 | 32 |
|
45 |
| - - name: Run tests |
46 |
| - working-directory: ${{runner.workspace}}/build |
47 |
| - run: ctest -C ${{matrix.build_type}} -j `sysctl -n hw.ncpu` --output-on-failure |
| 33 | + - name: Test |
| 34 | + run: ctest --test-dir build -j --output-on-failure |
0 commit comments