-
Notifications
You must be signed in to change notification settings - Fork 8
30 lines (26 loc) · 1.46 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
name: C/C++ CI macOS
on: [push]
jobs:
build-in-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Create Build Dir
run: cmake -E make_directory ${{github.workspace}}/build
- name: Pre-Install Boost, LevelDB
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && ( brew install autoconf autoconf-archive automake ninja boost-python3 snappy leveldb || brew install autoconf autoconf-archive automake ninja boost-python3 snappy leveldb )
- name: Configure
working-directory: ${{github.workspace}}/build
run: cmake ${{github.workspace}} -GXcode -DOPENMIND_USE_VCPKG=NO -DOPENMIND_BUILD_SAMPLES=OFF -DOPENMIND_BUILD_TESTS=ON -Dleveldb_TAG:STRING="1.23" -DOPENMIND_MATH_USE_LEVELDB_CACHE=OFF -DOPENMIND_STORAGE_LEVELDB=OFF
- name: Install prerequisites
working-directory: ${{github.workspace}}/build
run: cmake --build ${{github.workspace}}/build --target prerequisites -j `sysctl -n hw.ncpu` --config Release
- name: Reconfigure to detect newly installed prerequisites
working-directory: ${{github.workspace}}/build
run: cmake .
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build ${{github.workspace}}/build -j `sysctl -n hw.ncpu` --config Release
- name: Check
working-directory: ${{github.workspace}}/build
run: ctest --timeout 3200 -C Release -j `sysctl -n hw.ncpu` -E ts