Expose modifier targets to Python. #366
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS-CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: macOS-latest | |
strategy: | |
matrix: | |
compiler: [gcc, clang] | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 |