41 lines
977 B
YAML
41 lines
977 B
YAML
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build_wheels:
|
|
name: Build wheels on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-20.04, windows-2019, macos-10.15]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v2
|
|
name: Install Python
|
|
with:
|
|
python-version: '3.7'
|
|
|
|
- name: Install Visual C++ for Python 2.7
|
|
if: runner.os == 'Windows'
|
|
run: choco install vcpython27 -f -y
|
|
|
|
- name: Set up QEMU
|
|
if: runner.os == 'Linux'
|
|
uses: docker/setup-qemu-action@v1
|
|
with:
|
|
platforms: all
|
|
|
|
- name: Build wheels
|
|
uses: joerick/cibuildwheel@v1.10.0
|
|
env:
|
|
# configure cibuildwheel to build native archs ('auto'), and some
|
|
# emulated ones
|
|
CIBW_ARCHS_LINUX: auto aarch64 ppc64le s390x
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
path: ./wheelhouse/*.whl
|