Skip to content

Commit aed2fd1

Browse files
committed
BLD: Enable wheels on Windows-on-ARM
1 parent 01e919a commit aed2fd1

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ jobs:
127127
- os: ubuntu-24.04-arm
128128
cibw_archs: "aarch64"
129129
- os: windows-latest
130-
cibw_archs: "auto64"
130+
cibw_archs: "AMD64"
131+
- os: windows-11-arm
132+
cibw_archs: "ARM64"
131133
- os: macos-13
132134
cibw_archs: "x86_64"
133135
- os: macos-14
@@ -167,7 +169,6 @@ jobs:
167169
CIBW_BUILD: "cp311-*"
168170
CIBW_ARCHS: ${{ matrix.cibw_archs }}
169171

170-
171172
- name: Build wheels for PyPy
172173
uses: pypa/cibuildwheel@faf86a6ed7efa889faf6996aa23820831055001a # v2.23.3
173174
with:
@@ -178,7 +179,7 @@ jobs:
178179
CIBW_ENABLE: pypy
179180
# No wheels available for Pillow with pp311 yet.
180181
CIBW_TEST_SKIP: "pp311*"
181-
if: matrix.cibw_archs != 'aarch64' && matrix.os != 'windows-latest'
182+
if: matrix.cibw_archs != 'aarch64' && matrix.os != 'windows-latest' && matrix.os != 'windows-11-arm'
182183

183184
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
184185
with:

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ local_scheme = "node-and-date"
8686
parentdir_prefix_version = "matplotlib-"
8787
fallback_version = "0.0+UNKNOWN"
8888

89+
[[tool.cibuildwheel.overrides]]
90+
select = "*-win_arm64"
91+
before-test = "pip install --pre numpy"
92+
8993
[tool.isort]
9094
known_pydata = "numpy, matplotlib.pyplot"
9195
known_firstparty = "matplotlib,mpl_toolkits"

0 commit comments

Comments
 (0)