forked from H-uru/libhsplasma
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (39 loc) · 1.39 KB
/
macos-ci.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
name: macOS-CI
on: [push, pull_request]
jobs:
build:
runs-on: macOS-latest
strategy:
matrix:
compiler: [gcc, clang]
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
brew install libjpeg-turbo libpng
if [[ "${{ matrix.compiler }}" == "gcc" ]]; then
brew install gcc@12
fi
- name: Build string_theory
run: |
mkdir -p build_deps && cd build_deps
if [[ "${{ matrix.compiler }}" == "gcc" ]]; then
export CC=gcc-12
export CXX=g++-12
fi
git clone https://github.com/zrax/string_theory
mkdir -p string_theory/build && cd string_theory/build
cmake -DCMAKE_BUILD_TYPE=Debug -DST_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX="${GITHUB_WORKSPACE}/build_deps/prefix" ..
make -j2 && make install
- name: Build libhsplasma
run: |
mkdir build && cd build
if [[ "${{ matrix.compiler }}" == "gcc" ]]; then
export CC=gcc-12
export CXX=g++-12
fi
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_FIND_FRAMEWORK=LAST \
-DCMAKE_PREFIX_PATH="${GITHUB_WORKSPACE}/build_deps/prefix;/usr/local/opt/jpeg-turbo;/usr/local/opt/openssl" \
-DENABLE_PYTHON=ON -DENABLE_TOOLS=ON -DENABLE_NET=ON -DENABLE_PHYSX=OFF ..
make -j2