Compile for multiple architectures

scikit-build
Andrew Cassidy 2 years ago
parent 70b7251eae
commit 1f7b45aa57

@ -45,11 +45,18 @@ jobs:
path: dist/*.tar.gz path: dist/*.tar.gz
build-wheels: build-wheels:
name: Build Wheels for ${{ matrix.os }} name: Build Wheels for ${{ matrix.os }}-${{ matrix.arch }}
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ] os: [ macos-latest, windows-latest, ubuntu-latest ]
arch: [ x86_64 ]
include:
- arch: arm64
os: macos-latest
- arch: aarch64
os: ubuntu-latest
qemu: true
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -63,16 +70,26 @@ jobs:
# openMP isnt part of core apple clang for some reason? # openMP isnt part of core apple clang for some reason?
run: brew install libomp run: brew install libomp
- name: Install QEMU
# install QEMU if building for arm linux
uses: docker/setup-qemu-action@v1
if: matrix.qemu
with:
platforms: arm64
- name: Install test images - name: Install test images
run: git clone https://git.pileof.rocks/drewcassidy/quicktex-test-images.git tests/images run: git clone https://git.pileof.rocks/drewcassidy/quicktex-test-images.git tests/images
- name: Build wheels - name: Build wheels
uses: joerick/cibuildwheel@v1.11.0 uses: joerick/cibuildwheel@v2.3
env: env:
MACOSX_DEPLOYMENT_TARGET: "10.15" MACOSX_DEPLOYMENT_TARGET: "10.15"
CIBW_BUILD: "cp{37,38,39,310}-*" CIBW_BUILD: "cp{37,38,39,310}-*"
CIBW_SKIP: "*-win32 *-manylinux_i686" CIBW_ARCHS_MACOS: ${{ matrix.arch }}
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux2014" CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_ARCHS_WINDOWS: "auto64"
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux_2_24"
CIBW_MANYLINUX_AARCH64_IMAGE: "manylinux_2_24"
CIBW_TEST_EXTRAS: "tests" CIBW_TEST_EXTRAS: "tests"
CIBW_TEST_COMMAND: nosetests {project}/tests -d CIBW_TEST_COMMAND: nosetests {project}/tests -d

Loading…
Cancel
Save