Skip to content

Commit 20004b6

Browse files
dainnilssonCopilot
andcommitted
Use native Windows ARM64 runner for wheel builds
Cross-compilation from x64 doesn't work reliably for PyO3 extensions. Use windows-11-arm runner with native ARM64 Python (3.11+, since ARM64 Python starts at 3.11). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 16425ec commit 20004b6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ jobs:
9393
target: universal2-apple-darwin
9494
- os: windows-latest
9595
target: x64
96-
- os: windows-latest
97-
target: aarch64-pc-windows-msvc
98-
find-interpreter: false
96+
- os: windows-11-arm
97+
target: aarch64
98+
interpreter: 3.11 3.12 3.13 3.14
9999

100100
steps:
101101
- uses: actions/checkout@v6
@@ -121,7 +121,7 @@ jobs:
121121
uses: PyO3/maturin-action@v1
122122
with:
123123
target: ${{ matrix.target }}
124-
args: --release --out dist ${{ matrix.find-interpreter == false && '-i 3.10 3.11 3.12 3.13 3.14' || '--find-interpreter' }}
124+
args: --release --out dist ${{ matrix.interpreter && format('--interpreter {0}', matrix.interpreter) || '--find-interpreter' }}
125125
manylinux: manylinux_2_28
126126
container: ${{ matrix.container }}
127127
before-script-linux: ${{ matrix.container && 'dnf install -y pcsc-lite-devel systemd-devel' || '' }}

0 commit comments

Comments
 (0)