Trying to deal with Python 3.12 wrinkle #65
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 with 3.8-3.10 | |
on: [push, pull_request] | |
jobs: | |
build_wheels: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-12, macos-14] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build wheels | |
uses: pypa/cibuildwheel@v2.19.2 | |
env: | |
CIBW_BUILD: cp38-* cp39-* cp310-* | |
# gmp already installed on macos runner | |
CIBW_BEFORE_ALL_MACOS: > | |
python -m pip install wheel setuptools && | |
python setup.py package_assemble && | |
brew install gmp && | |
ln -s /opt/homebrew/opt/gmp/include/gmp.h extinclude && | |
ln -s /opt/homebrew/opt/gmp/include/gmpxx.h extinclude && | |
ln -s /opt/homebrew/opt/gmp/lib/libgmp.a extlib && | |
ln -s /opt/homebrew/opt/gmp/lib/libgmpxx.a extlib | |
CIBW_TEST_COMMAND: python -m regina.test | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: ./wheelhouse/*.whl |