Skip to content

Commit 0663222

Browse files
committed
WHL: fix linux arch selection
1 parent 76255fa commit 0663222

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/cd.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -254,16 +254,16 @@ jobs:
254254
- {pyver: '3.11', abi: abi3}
255255
#- {pyver: 3.15t, abi: abi3t}
256256
target:
257-
- x86_64
258-
- aarch64
257+
- {full: x86_64, short: x64}
258+
- {full: aarch66, short: amr64}
259259
steps:
260260
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
261261
with:
262262
persist-credentials: false
263263
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
264264
with:
265265
python-version: ${{ matrix.platform.pyver }}
266-
architecture: x64
266+
architecture: ${{ matrix.target.short }}
267267
allow-prereleases: ${{ matrix.platform.pyver == '3.15t' }}
268268
- uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
269269
with:
@@ -275,7 +275,7 @@ jobs:
275275
- name: Build wheels
276276
uses: PyO3/maturin-action@04ac600d27cdf7a9a280dadf7147097c42b757ad # v1.50.1
277277
with:
278-
target: ${{ matrix.target }}
278+
target: ${{ matrix.target.full }}
279279
manylinux: '2_28'
280280
args: --release --out dist --no-default-features -F pyo3/${{ matrix.platform.abi }} -F fma ${{ startsWith( matrix.target , 'aarch64' ) && '-F branchless' || '' }} -i python${{ matrix.platform.pyver }}
281281
- name: Test wheel
@@ -301,16 +301,16 @@ jobs:
301301
- {pyver: '3.11', abi: abi3}
302302
#- {pyver: 3.15t, abi: abi3t}
303303
target:
304-
- x86_64-unknown-linux-musl
305-
- aarch64-unknown-linux-musl
304+
- {full: x86_64-unknown-linux-musl, short: x64}
305+
- {full: aarch64-unknown-linux-musl, short: amr64}
306306
steps:
307307
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
308308
with:
309309
persist-credentials: false
310310
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
311311
with:
312312
python-version: ${{ matrix.platform.pyver }}
313-
architecture: x64
313+
architecture: ${{ matrix.target.short }}
314314
allow-prereleases: ${{ matrix.platform.pyver == '3.15t' }}
315315
- uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6
316316
with:
@@ -322,7 +322,7 @@ jobs:
322322
- name: Build wheels
323323
uses: PyO3/maturin-action@04ac600d27cdf7a9a280dadf7147097c42b757ad # v1.50.1
324324
with:
325-
target: ${{ matrix.target }}
325+
target: ${{ matrix.target.full }}
326326
manylinux: musllinux_1_2
327327
args: --release --out dist --no-default-features -F pyo3/${{ matrix.platform.abi }} -F fma ${{ startsWith( matrix.target , 'aarch64' ) && '-F branchless' || '' }} -i python${{ matrix.platform.pyver }}
328328
- name: Upload wheels

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- DEP: drop support for Python 3.10, require 3.11 or newer
1212
- DEP: upgrade MSRV to 1.83
1313
- DEP: bump rust-numpy and pyo3 to 0.29
14+
- WHL: fix build architecture selection for Linux aarch64 wheels
1415

1516
## 0.5.3 - 2025-11-15
1617

0 commit comments

Comments
 (0)