-
Notifications
You must be signed in to change notification settings - Fork 288
58 lines (49 loc) · 1.45 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: CI
'on':
pull_request:
push:
branches:
- master
- develop
- feature/**
env:
UBSAN_OPTIONS: print_stacktrace=1
ASAN_OPTIONS: detect_odr_violation=2
jobs:
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Free disk space
run: |
df -h
# TODO
#
- name: Cache Homebrew Packages
id: cache-homebrew-packages
uses: actions/cache@v3
env:
cache-name: homebrew-packages
with:
path: $(brew --prefix)
key: macos-${{ env.cache-name }}-${{ hashFiles('.config/brew/Brewfile') }}
- name: Install packages
run: |
brew install $(cat scripts/docs/en/deps/macos.md | grep -v kafka)
- name: Run cmake
run: |
mkdir build_debug
cd build_debug
cmake ..
- name: Compile
run: |
pwd
cd build_debug
make -j$(nproc)
- name: Run tests (universal)
run: |
echo "UBSAN_OPTIONS=${UBSAN_OPTIONS} ASAN_OPTIONS=${ASAN_OPTIONS}"
cd build_debug
./universal/userver-universal-unittest ${{matrix.tests-flags}}