Skip to content

Commit c17d69f

Browse files
committed
Simplify macOS CI jobs
1 parent 4c93a59 commit c17d69f

File tree

2 files changed

+12
-68
lines changed

2 files changed

+12
-68
lines changed

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

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/mac-builds.yml

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,34 @@
1-
name: Intel Mac builds
1+
name: Mac Builds
22

33
on: [push, pull_request]
44

55
jobs:
66
build:
77
# 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}}
1210
strategy:
1311
fail-fast: false
1412
matrix:
15-
cxx:
16-
- clang++
13+
image: [macos-13, macos-14, macos-15]
1714
build_type: [Debug, Release]
1815
std: [14, 17]
19-
include:
20-
- build_type: Debug
21-
examples: ON
22-
extra_tests: ON
2316

2417
steps:
2518
- uses: actions/checkout@v4
2619

27-
- name: Configure build
28-
working-directory: ${{runner.workspace}}
29-
env:
30-
CXX: ${{matrix.cxx}}
31-
CXXFLAGS: ${{matrix.cxxflags}}
20+
- name: Configure
3221
run: |
33-
cmake -Bbuild -S$GITHUB_WORKSPACE \
22+
cmake -Bbuild -GNinja \
3423
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
3524
-DCMAKE_CXX_STANDARD=${{matrix.std}} \
3625
-DCMAKE_CXX_STANDARD_REQUIRED=ON \
3726
-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
4029
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
4432

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

Comments
 (0)