Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build for linux aarch64 (arm64) - POC #115

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ if [[ "$MB_PYTHON_VERSION" == pypy3* ]]; then
MB_PYTHON_OSX_VER="10.9"
if [[ "$PLAT" == "i686" ]]; then
DOCKER_TEST_IMAGE="multibuild/xenial_$PLAT"
elif [[ "$PLAT" == "aarch64" ]]; then
DOCKER_TEST_IMAGE="multibuild/focal_arm64v8"
else
DOCKER_TEST_IMAGE="multibuild/focal_$PLAT"
fi
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ jobs:
matrix:
os: [ "ubuntu-20.04", "macos-12" ]
python: [ "3.8" , "3.9", "3.10", "3.11", "3.12" ]
platform: [ "x86_64" ]
platform: [ "x86_64", "aarch64" ]
macos-target: [ "10.15" ]
exclude:
- os: "macos-12"
platform: "i686"
- os: "macos-12"
platform: "aarch64"
include:
- os: "macos-12"
os-name: "osx"
Expand All @@ -41,6 +43,15 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:master # lastest is recommended but faster qemu v8 is only currently available on master.
platforms: linux/arm64
if: startsWith(matrix.os, 'ubuntu')
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
if: startsWith(matrix.os, 'ubuntu')
- name: Build Wheel
run: .github/workflows/build.sh
- uses: actions/upload-artifact@v3
Expand Down