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