-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (34 loc) · 1.15 KB
/
darwin.yml
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
name: darwin
on: [push, pull_request]
jobs:
build:
runs-on: ${{matrix.config.os}}
strategy:
fail-fast: false
matrix:
config:
# https://github.com/actions/virtual-environments/tree/main/images/macos
- { os: "macos-12", xcode: "13.4.1", arch: "x64" }
- { os: "macos-13", xcode: "14.3.1", arch: "x64" }
- { os: "macos-13", xcode: "14.3.1", arch: "arm64" }
- { os: "macos-14", xcode: "15.4", arch: "x64" }
- { os: "macos-14", xcode: "15.4", arch: "arm64" }
name: "xcode-${{matrix.config.xcode}}-${{matrix.config.arch}}"
steps:
- name: Setup
run: |
brew update
brew install cmake ninja
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Select Xcode
run: sudo xcode-select --switch "/Applications/Xcode_${{matrix.config.xcode}}.app"
- name: Build
run: |
cmake --preset macos-${{matrix.config.arch}}
cmake --build --preset macos-${{matrix.config.arch}}-release
- name: Test
run: |
ctest --preset macos-${{matrix.config.arch}}