Skip to content

Commit c6823b0

Browse files
authored
build windows arm separately (#5)
* build windows arm separately * free threaded on windows is experiencing issues
1 parent e25ec8a commit c6823b0

1 file changed

Lines changed: 25 additions & 4 deletions

File tree

.github/workflows/CI.yml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@ jobs:
110110
- runner: windows-latest
111111
target: x86
112112
python_arch: x86
113-
- runner: windows-11-arm
114-
target: aarch64
115-
python_arch: arm64
116113
steps:
117114
- uses: actions/checkout@v6
118115
- uses: actions/setup-python@v6
@@ -141,6 +138,30 @@ jobs:
141138
name: wheels-windows-${{ matrix.platform.target }}
142139
path: dist
143140

141+
# Free-threaded 3.14t wheels for windows-11-arm are skipped: the runner image
142+
# ships with Python 3.14 GIL preinstalled, which breaks setup-python's 3.14t
143+
# install. Tracked upstream at
144+
# https://github.com/actions/partner-runner-images/issues/154
145+
windows_arm:
146+
runs-on: windows-11-arm
147+
steps:
148+
- uses: actions/checkout@v6
149+
- uses: actions/setup-python@v6
150+
with:
151+
python-version: 3.13
152+
architecture: arm64
153+
- name: Build wheels
154+
uses: PyO3/maturin-action@v1
155+
with:
156+
target: aarch64
157+
args: --release --out dist
158+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
159+
- name: Upload wheels
160+
uses: actions/upload-artifact@v6
161+
with:
162+
name: wheels-windows-aarch64
163+
path: dist
164+
144165
macos:
145166
runs-on: ${{ matrix.platform.runner }}
146167
strategy:
@@ -195,7 +216,7 @@ jobs:
195216
name: Release
196217
runs-on: ubuntu-latest
197218
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
198-
needs: [linux, musllinux, windows, macos, sdist]
219+
needs: [linux, musllinux, windows, windows_arm, macos, sdist]
199220
permissions:
200221
# Use to sign the release artifacts
201222
id-token: write

0 commit comments

Comments
 (0)