-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.06 KB
/
build-macos.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
37
38
39
40
41
42
43
44
name: Sidelobe Build Matrix macos
on:
push:
branches:
- main
- develop
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: ${{matrix.os}}, ${{matrix.cxx}}, C++${{matrix.std}}, ${{matrix.build_type}}
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [macos-latest]
cxx:
- clang++
build_type: [Debug]
std: [14]
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Setup & Cmake
working-directory: deploy
env:
CXX: ${{matrix.cxx}}
run: |
mkdir -p build
cd build
cmake -DCMAKE_CXX_STANDARD=${{matrix.std}} \
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
--target MemorySentinelTest \
../..
- name: Build & Run Tests
env:
CTEST_OUTPUT_ON_FAILURE: 1
working-directory: deploy/build
run: |
cmake --build . --parallel 2
ctest -C ${{ matrix.build_type }} -L MemorySentinelTest -j 2