Skip to content

Commit 48f6601

Browse files
authored
PYTHON-5058 Fix aarch64 wheel build (#275)
1 parent 4a12810 commit 48f6601

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/release-python.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
# https://github.com/github/feedback/discussions/7835#discussioncomment-1769026
3232
buildplat:
3333
- [ubuntu-20.04, manylinux_x86_64]
34-
- [ubuntu-24.04-arm, manylinux_aarch64]
34+
- [ubuntu-20.04, manylinux_aarch64]
3535
- [macos-14, macosx_*]
3636
- [windows-2019, win_amd64]
3737
python: ["cp39", "cp310", "cp311", "cp312", "cp313"]
@@ -46,7 +46,6 @@ jobs:
4646
- name: Checkout pymongoarrow
4747
uses: actions/checkout@v4
4848
with:
49-
fetch-depth: 0
5049
persist-credentials: false
5150

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

63+
- name: Set up QEMU
64+
if: matrix.buildplat[1] == 'manylinux_aarch64'
65+
uses: docker/setup-qemu-action@v3
66+
with:
67+
# setup-qemu-action by default uses `tonistiigi/binfmt:latest` image,
68+
# which is out of date. This causes seg faults during build.
69+
# Here we manually fix the version.
70+
image: tonistiigi/binfmt:qemu-v8.1.5
71+
platforms: arm64
72+
6473
- name: Install pkg-config on MacOS
6574
if: runner.os == 'macOS'
6675
run: brew install pkg-config
@@ -95,7 +104,6 @@ jobs:
95104
steps:
96105
- uses: actions/checkout@v4
97106
with:
98-
fetch-depth: 0
99107
persist-credentials: false
100108

101109
- uses: actions/setup-python@v5

0 commit comments

Comments
 (0)