Update __init__.py #158
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: Build wheels | |
on: [push, pull_request] | |
# Cannot use cibuildwheels because the current images used by cibuildwheels do not support C++17. | |
jobs: | |
build_wheels_windows: | |
name: ${{ matrix.os }} ${{ matrix.python-version }} ${{ matrix.arch }} wheels | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-2019] | |
arch: [x86, x64] | |
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: ${{ matrix.arch }} | |
- name: Install packages | |
run: pip install wheel | |
- name: build | |
run: python setup.py bdist_wheel | |
- name: upload wheels | |
uses: actions/upload-artifact@v2 | |
with: | |
path: ./dist/*.whl | |
build_wheels_mac: | |
name: ${{ matrix.os }} ${{ matrix.python-version }} wheels | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
# Trying to use cibuildwheels to build mac wheels fails because the version of XCode is not high enough. | |
# There is documentation here https://github.com/pypa/cibuildwheel/blob/main/docs/cpp_standards.md on how to | |
# set it but I could not get it to work while using the standard images provided by github actions does work. | |
os: [macos-latest] | |
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"] | |
env: | |
SYSTEM_VERSION_COMPAT: 0 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install packages | |
run: pip install wheel | |
- name: build | |
run: python setup.py bdist_wheel | |
- name: upload wheels | |
uses: actions/upload-artifact@v2 | |
with: | |
path: ./dist/*.whl | |
build_wheels_manylinux: | |
name: Build manylinux wheels | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
# Need to use the image specified below to build manylinux wheels | |
# PyPi only accepts manylinux wheels, it does not accept wheels for specific versions/architectures | |
# Note that at least manylinux2014 is needed to get support for C++17 | |
- name: Build manylinux Python wheels | |
uses: RalfG/python-wheels-manylinux-build@v0.7.1-manylinux2014_x86_64 | |
- name: upload wheels | |
uses: actions/upload-artifact@v2 | |
with: | |
path: ./dist/*-manylinux*.whl | |