Skip to content

Commit 9caf905

Browse files
trim21aminalaee
andauthored
ci: build wheel for windows on arm (#77)
Co-authored-by: Amin Alaee <[email protected]>
1 parent 7887da5 commit 9caf905

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,20 +162,28 @@ jobs:
162162

163163
windows:
164164
name: "Windows: ${{ matrix.platform.target }}"
165-
runs-on: windows-latest
165+
runs-on: "${{ matrix.platform.os }}"
166166
strategy:
167167
matrix:
168168
platform:
169169
- target: x64
170-
interpreter: 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10
170+
os: windows-latest
171+
py_arch: "x64"
172+
interpreter: "3.13"
171173
- target: x86
172-
interpreter: 3.9 3.10 3.11 3.12
174+
py_arch: "x86"
175+
os: windows-latest
176+
interpreter: "3.13"
177+
- target: aarch64
178+
py_arch: "arm64"
179+
os: windows-11-arm
180+
interpreter: "3.13"
173181
steps:
174182
- uses: actions/checkout@v4
175183
- uses: actions/setup-python@v5
176184
with:
177-
python-version: "3.12"
178-
architecture: ${{ matrix.platform.target }}
185+
python-version: "${{ matrix.platform.interpreter }}"
186+
architecture: ${{ matrix.platform.py_arch }}
179187
- uses: dtolnay/rust-toolchain@stable
180188
- name: Build wheels
181189
uses: PyO3/maturin-action@v1
@@ -197,23 +205,28 @@ jobs:
197205
macos:
198206
name: "MacOS"
199207
runs-on: macos-latest
208+
strategy:
209+
matrix:
210+
py:
211+
- { i: "3.9 3.10 3.11 3.12 3.13", py: "3.9" }
212+
- { i: "pypy3.9 pypy3.10", py: "pypy3.10" }
200213
steps:
201214
- uses: actions/checkout@v4
202215
- uses: actions/setup-python@v5
203216
with:
204-
python-version: "3.12"
217+
python-version: "${{ matrix.py.py }}"
205218
- uses: dtolnay/rust-toolchain@stable
206219
- name: Build wheels - x86_64
207220
uses: PyO3/maturin-action@v1
208221
with:
209222
target: x86_64
210-
args: --release --out dist -i 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10
223+
args: --release --out dist -i ${{ matrix.py.i }}
211224
sccache: "true"
212225
- name: Build wheels - universal2
213226
uses: PyO3/maturin-action@v1
214227
with:
215228
target: universal2-apple-darwin
216-
args: --release --out dist -i 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10
229+
args: --release --out dist -i ${{ matrix.py.i }}
217230
- name: Install and test uuid_utils
218231
run: |
219232
pip install uuid_utils --no-index --find-links dist --force-reinstall
@@ -222,7 +235,7 @@ jobs:
222235
- name: Upload wheels
223236
uses: actions/upload-artifact@v4
224237
with:
225-
name: wheels-macos
238+
name: wheels-macos-${{ strategy.job-index }}
226239
path: dist
227240

228241
sdist:

0 commit comments

Comments
 (0)