|
|
|
@ -45,19 +45,11 @@ jobs:
|
|
|
|
|
path: dist/*.tar.gz
|
|
|
|
|
|
|
|
|
|
build-wheels:
|
|
|
|
|
name: Build Wheels for ${{ matrix.os }}-${{ matrix.arch }}
|
|
|
|
|
name: Build Wheels for ${{ matrix.os }}
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
strategy:
|
|
|
|
|
matrix:
|
|
|
|
|
os: [ macos-latest, windows-latest, ubuntu-latest ]
|
|
|
|
|
arch: [ x86_64 ]
|
|
|
|
|
include:
|
|
|
|
|
- arch: arm64
|
|
|
|
|
os: macos-latest
|
|
|
|
|
- arch: aarch64
|
|
|
|
|
os: ubuntu-latest
|
|
|
|
|
qemu: true
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
with:
|
|
|
|
@ -73,18 +65,19 @@ jobs:
|
|
|
|
|
- name: Install QEMU
|
|
|
|
|
# install QEMU if building for arm linux
|
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
|
if: matrix.qemu
|
|
|
|
|
if: runner.os == 'Linux'
|
|
|
|
|
with:
|
|
|
|
|
platforms: arm64
|
|
|
|
|
|
|
|
|
|
- name: Build wheels
|
|
|
|
|
uses: pypa/cibuildwheel@v2.3.1
|
|
|
|
|
env:
|
|
|
|
|
# these options are all specific to running in the CI. other options are in pyproject.toml
|
|
|
|
|
MACOSX_DEPLOYMENT_TARGET: "10.15"
|
|
|
|
|
# CIBW_ARCHS_MACOS: ${{ matrix.arch }}
|
|
|
|
|
# CIBW_ARCHS_LINUX: ${{ matrix.arch }}
|
|
|
|
|
# CIBW_ARCHS_WINDOWS: "auto64"
|
|
|
|
|
CIBW_TEST_SKIP: "*-macosx_arm64"
|
|
|
|
|
CIBW_ARCHS_MACOS: "x86_64 universal2"
|
|
|
|
|
CIBW_ARCHS_LINUX: "x86_64 aarch64"
|
|
|
|
|
CIBW_ARCHS_WINDOWS: "auto64"
|
|
|
|
|
CIBW_TEST_SKIP: "*-macosx_arm64 *-macosx_universal2:arm64"
|
|
|
|
|
|
|
|
|
|
- name: Upload Wheels
|
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
|