-
Notifications
You must be signed in to change notification settings - Fork 41
34 lines (26 loc) · 799 Bytes
/
macos.yml
File metadata and controls
34 lines (26 loc) · 799 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
name: MacOS
on:
push:
branches: ["modules"]
pull_request:
branches: ["modules"]
workflow_dispatch:
jobs:
build-and-test:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
preset: [ci-hardened, ci-release, ci-no-except-rtti, ci-sanitize]
steps:
- uses: actions/checkout@v6
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Install Dependencies
run: brew install cmake ninja llvm catch2 google-benchmark
- name: Configure
run: cmake --preset ${{ matrix.preset }} -DCMAKE_TOOLCHAIN_FILE=cmake/llvm-brew-toolchain.cmake
- name: Build
run: cmake --build --preset ${{ matrix.preset }}
- name: Test
run: ctest --preset ${{ matrix.preset }}