Skip to content

Commit 6c82dc5

Browse files
committed
fix: aarch64 wheel build -- add QEMU setup and python interpreter flag
1 parent 0107cca commit 6c82dc5

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/build-wheels.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,19 @@ jobs:
5353
manylinux: auto
5454
args: --release --out dist -m codexa-core/Cargo.toml
5555

56+
- name: Set up QEMU
57+
if: matrix.target == 'aarch64'
58+
uses: docker/setup-qemu-action@v3
59+
with:
60+
platforms: arm64
61+
5662
- name: Build wheel (Linux aarch64)
5763
if: matrix.os == 'ubuntu-latest' && matrix.target == 'aarch64'
5864
uses: PyO3/maturin-action@v1
5965
with:
6066
target: aarch64-unknown-linux-gnu
6167
manylinux: auto
62-
args: --release --out dist -m codexa-core/Cargo.toml
68+
args: --release --out dist -m codexa-core/Cargo.toml -i python3.12
6369

6470
- name: Build wheel (macOS Universal2)
6571
if: matrix.os == 'macos-latest'
@@ -132,8 +138,8 @@ jobs:
132138
uses: pypa/gh-action-pypi-publish@release/v1
133139
with:
134140
packages-dir: artifacts/
135-
env:
136-
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
141+
password: ${{ secrets.PYPI_API_TOKEN }}
142+
skip-existing: true
137143

138144
- name: Create GitHub Release
139145
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)