Skip to content

Commit dd62675

Browse files
committed
CI: Fix windows arm build
Assisted-by: Kimi-k2.6
1 parent d040bc3 commit dd62675

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

build.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
$ErrorActionPreference = 'Stop'
2+
13
if (!(Test-Path -Path "build")) {
24
# in case the pygit2 package build/ workspace has not been created by cibuildwheel yet
35
mkdir build

docs/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ variable. The following recipe shows you how to do it:
309309
310310
git clone --depth=1 -b v1.9.4 https://github.com/libgit2/libgit2.git
311311
$env:CMAKE_INSTALL_PREFIX = "C:/Dev/libgit2"
312-
$env:CMAKE_GENERATOR = "Visual Studio 18 2026"
312+
$env:CMAKE_GENERATOR = "Visual Studio 17 2022" # or "Visual Studio 18 2026"
313313
$env:CMAKE_GENERATOR_PLATFORM = "x64" # or "Win32" or "ARM64"
314314
cmake -B libgit2/build -S libgit2
315315
cmake --build libgit2/build --config release --target install

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ environment.LIBGIT2 = "C:/libgit2_install_x86"
5555
[[tool.cibuildwheel.overrides]]
5656
select="*-win_arm64"
5757
inherit.environment="append"
58-
environment.CMAKE_GENERATOR = "Visual Studio 18 2026"
58+
environment.CMAKE_GENERATOR = "Visual Studio 17 2022"
5959
environment.CMAKE_GENERATOR_PLATFORM = "ARM64"
6060
environment.CMAKE_INSTALL_PREFIX = "C:/libgit2_install_arm64"
6161
environment.LIBGIT2 = "C:/libgit2_install_arm64"

0 commit comments

Comments
 (0)