-
Notifications
You must be signed in to change notification settings - Fork 288
66 lines (56 loc) · 1.65 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
59
60
61
62
63
64
65
66
name: CI
'on':
pull_request:
push:
branches:
- master
- develop
- feature/**
env:
UBSAN_OPTIONS: print_stacktrace=1
ASAN_OPTIONS: detect_odr_violation=2
jobs:
macos:
name: MacOS
runs-on: macos-latest
env:
CMAKE_FLAGS: >-
-DUSERVER_SANITIZE="ub addr"
-DCMAKE_BUILD_TYPE=Debug
-DUSERVER_NO_WERROR=OFF
-DUSERVER_NAMESPACE=userver_ns
-DUSERVER_NAMESPACE_BEGIN="namespace userver_ns {"
-DUSERVER_NAMESPACE_END="}"
-DUSERVER_FEATURE_KAFKA=0
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use XCode 15.4
run: |
sudo xcode-select -s /Applications/Xcode_15.4.app
- 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)
- name: Run cmake
run: |
mkdir build_debug
cd build_debug
cmake $CMAKE_FLAGS ..
- name: Compile
run: |
pwd
cd build_debug
make -j$(nproc) -k