Skip to content

feat ci: add basic macos support in gh CI #2

feat ci: add basic macos support in gh CI

feat ci: add basic macos support in gh CI #2

Workflow file for this run

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-13
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Free disk space
run: |
df -h
# TODO
- name: Install packages
run: |
brew install $(cat scripts/docs/en/deps/macos.md)
- 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}}