Skip to content

Commit 3d363e9

Browse files
committed
Simplify macOS CI jobs
1 parent 7c1c860 commit 3d363e9

File tree

2 files changed

+8
-62
lines changed

2 files changed

+8
-62
lines changed

.github/workflows/mac-builds-m1.yml

-43
This file was deleted.

.github/workflows/mac-builds.yml

+8-19
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Intel Mac builds
1+
name: Mac builds
22

33
on: [push, pull_request]
44

@@ -8,40 +8,29 @@ jobs:
88
# and not Intel based. Thus this is the newest image we can use for
99
# Intel MacOS CI, and there don't seem to be any plans to keep providing
1010
# the Intel based images for free to OSS projects.
11-
runs-on: macos-13
11+
runs-on: ${{matrix.image}}
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
cxx:
16-
- clang++
15+
image: [macos-13, macos-14, macos-15]
1716
build_type: [Debug, Release]
1817
std: [14, 17]
19-
include:
20-
- build_type: Debug
21-
examples: ON
22-
extra_tests: ON
2318

2419
steps:
2520
- uses: actions/checkout@v4
2621

2722
- name: Configure build
28-
working-directory: ${{runner.workspace}}
29-
env:
30-
CXX: ${{matrix.cxx}}
31-
CXXFLAGS: ${{matrix.cxxflags}}
3223
run: |
33-
cmake -Bbuild -S$GITHUB_WORKSPACE \
24+
cmake -Bbuild -GNinja \
3425
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
3526
-DCMAKE_CXX_STANDARD=${{matrix.std}} \
3627
-DCMAKE_CXX_STANDARD_REQUIRED=ON \
3728
-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
4031
4132
- name: Build tests + lib
42-
working-directory: ${{runner.workspace}}/build
43-
run: make -j `sysctl -n hw.ncpu`
33+
run: cmake --build build
4434

4535
- 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

Comments
 (0)