-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 1006 Bytes
/
unit-macos.yml
File metadata and controls
44 lines (34 loc) · 1006 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
39
40
41
42
43
44
name: "Unit tests: macOS"
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
build-and-test:
name: Unit tests on macOS
runs-on: macos-15
env:
CC: clang
CXX: clang++
steps:
- name: checkout repo & submodules
uses: actions/checkout@v5
with:
submodules: true
fetch-depth: 0
- name: install system packages
run: brew install pkg-config automake autoconf autoconf-archive libtool ninja openssl zlib bzip2 xz
- name: make build directory
run: mkdir build_dir
- name: cmake configure
run: cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_CXX_COMPILER=clang++
working-directory: build_dir
- name: cmake build
run: cmake --build . --parallel 4 --target unit_tests
working-directory: build_dir
- name: cmake test
run: ctest -j4 --output-on-failure
working-directory: build_dir