Skip to content

Commit

Permalink
PYTHON-5058 Fix aarch64 wheel build (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Feb 6, 2025
1 parent 4a12810 commit 48f6601
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
# https://github.com/github/feedback/discussions/7835#discussioncomment-1769026
buildplat:
- [ubuntu-20.04, manylinux_x86_64]
- [ubuntu-24.04-arm, manylinux_aarch64]
- [ubuntu-20.04, manylinux_aarch64]
- [macos-14, macosx_*]
- [windows-2019, win_amd64]
python: ["cp39", "cp310", "cp311", "cp312", "cp313"]
Expand All @@ -46,7 +46,6 @@ jobs:
- name: Checkout pymongoarrow
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Set up python version
Expand All @@ -61,6 +60,16 @@ jobs:
cache-dependency-path: 'bindings/python/pyproject.toml'
allow-prereleases: true

- name: Set up QEMU
if: matrix.buildplat[1] == 'manylinux_aarch64'
uses: docker/setup-qemu-action@v3
with:
# setup-qemu-action by default uses `tonistiigi/binfmt:latest` image,
# which is out of date. This causes seg faults during build.
# Here we manually fix the version.
image: tonistiigi/binfmt:qemu-v8.1.5
platforms: arm64

- name: Install pkg-config on MacOS
if: runner.os == 'macOS'
run: brew install pkg-config
Expand Down Expand Up @@ -95,7 +104,6 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- uses: actions/setup-python@v5
Expand Down

0 comments on commit 48f6601

Please sign in to comment.