Skip to content

Commit 075ea0d

Browse files
committed
Don't build win arm64 on Python 3.10/3.11
Numpy doesn't have precompiled wheels for those versions on this platform.
1 parent 73e8d6a commit 075ea0d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ jobs:
4343
cibw_archs: "aarch64"
4444
- os: windows-2022
4545
cibw_archs: "auto64"
46+
cmake_gen_platform: "x64"
4647
- os: windows-11-arm
4748
cibw_archs: "ARM64"
49+
cmake_gen_platform: "ARM64"
4850
# Include macos-15-intel to get Intel x86_64 macs and macos-latest to get the Aarch64 macs
4951
- os: macos-15-intel
5052
cibw_archs: "x86_64"
@@ -77,7 +79,8 @@ jobs:
7779
CIBW_ENABLE: cpython-freethreading
7880
CIBW_BUILD: "cp3*"
7981
CIBW_ARCHS: ${{ matrix.cibw_archs }}
80-
CIBW_SKIP: "*-win32 *-manylinux_i686 *-musllinux_*"
82+
# Numpy is not built for Windows ARM64 on Python <3.11
83+
CIBW_SKIP: "*-win32 *-manylinux_i686 *-musllinux_* cp39-win_arm64 cp310-win_arm64"
8184
CIBW_TEST_REQUIRES: "pytest"
8285
CIBW_TEST_COMMAND: "pytest {project}/tests"
8386
# Skip testing on arm64 Python 3.8 because it uses the x86_64 executable, not the arm executable
@@ -87,7 +90,7 @@ jobs:
8790
rm -rf {package}/c/build
8891
CIBW_ENVIRONMENT_LINUX: CMAKE_GENERATOR="Unix Makefiles"
8992
CIBW_ENVIRONMENT_MACOS: CMAKE_GENERATOR="Unix Makefiles" CMAKE_OSX_ARCHITECTURES=${{ matrix.cibw_archs }}
90-
CIBW_ENVIRONMENT_WINDOWS: CMAKE_GENERATOR="Visual Studio 17 2022" CMAKE_GENERATOR_PLATFORM=x64
93+
CIBW_ENVIRONMENT_WINDOWS: CMAKE_GENERATOR="Visual Studio 17 2022" CMAKE_GENERATOR_PLATFORM=${{ matrix.cmake_gen_platform }}
9194
CIBW_BUILD_VERBOSITY: 1
9295

9396
- name: Upload artifacts to github

0 commit comments

Comments
 (0)