Skip to content

Python 3.12 warning fixes #351

Python 3.12 warning fixes

Python 3.12 warning fixes #351

Workflow file for this run

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