-
Notifications
You must be signed in to change notification settings - Fork 1.9k
43 lines (40 loc) · 1.46 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
name: MacOS / C++
on:
push:
branches:
- master
- 'releases/**'
pull_request:
branches:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
build_macos:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [macos-12]
build_type: [Debug, Release]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: brew install cmake boost flatbuffers ninja
- name: Configure
run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DWARNINGS=Off -DVW_BUILD_VW_C_WRAPPER=Off -DBUILD_TESTING=On -DBUILD_EXPERIMENTAL_BINDING=On -DVW_FEAT_CSV=On -DVW_FEAT_CB_GRAPH_FEEDBACK=On -DVW_INSTALL=Off -DSTD_INV_SQRT=ON
- name: Build
run: cmake --build build --target all
- name: Unit tests
working-directory: build
run: |
# Run unit tests
ctest --output-on-failure --no-tests=error --label-regex VWTestList --parallel 2
- name: Test
run: |
# Run integration tests
python3 test/run_tests.py --fuzzy_compare --exit_first_fail --epsilon 0.001 --ignore_dirty
python3 test/run_tests.py --fuzzy_compare --exit_first_fail --epsilon 0.001 --ignore_dirty --extra_options=--onethread
python3 test/run_tests.py --ignore_dirty --test_spec test/slow.vwtest.json --timeout 180