-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.06 KB
/
macos.yml
File metadata and controls
43 lines (36 loc) · 1.06 KB
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
39
40
41
42
43
name: MacOS
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
macos-clang:
runs-on: macos-latest
name: macOS-Clang
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: brew update && brew install ninja cmake
- name: Build tests
run: |
cmake tests -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++
cmake --build build --parallel
- name: Run Unit Tests
run: ./build/tests
- name: Build examples
run: |
cmake examples -B build2 -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++
cmake --build build2 --parallel
- name: Build benchmarks
run: |
cmake bench -B build3 -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++
cmake --build build3 --parallel