-
Notifications
You must be signed in to change notification settings - Fork 133
38 lines (36 loc) · 869 Bytes
/
mac-build.yml
File metadata and controls
38 lines (36 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: macOS build and tests
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
schedule:
- cron: '38 2 * * *'
jobs:
mac-build:
name: macOS (${{ matrix.arch }})
timeout-minutes: 30
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- runner: macos-15
arch: arm64
- runner: macos-15-intel
arch: x86_64
steps:
- uses: actions/checkout@v6
- name: configure
run: >
mkdir build && cd build &&
cmake ..
-DBUILDING_TESTS=1
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON
-DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }}
- name: build
run: cmake --build build
- name: test
run: cd build && ctest --output-on-failure