From c4218f29ddcdc02766232142cc27870a295bf6b5 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 21 Sep 2023 12:01:18 -0700 Subject: [PATCH] CI: install ninja on windows The new CI images provided by GitHub no longer provide ninja.exe, so this commit installs it explicitly, using the suggested method from GitHub. See https://github.com/actions/runner-images/issues/8343 for more details. --- ci/x86_64-windows-debug.ps1 | 1 + ci/x86_64-windows-release.ps1 | 1 + 2 files changed, 2 insertions(+) diff --git a/ci/x86_64-windows-debug.ps1 b/ci/x86_64-windows-debug.ps1 index 8176b34f11d0..1b98219de368 100644 --- a/ci/x86_64-windows-debug.ps1 +++ b/ci/x86_64-windows-debug.ps1 @@ -6,6 +6,7 @@ $PREFIX_PATH = "$(Get-Location)\$ZIG_LLVM_CLANG_LLD_NAME" $ZIG = "$PREFIX_PATH\bin\zig.exe" $ZIG_LIB_DIR = "$(Get-Location)\lib" +choco install ninja Write-Output "Downloading $ZIG_LLVM_CLANG_LLD_URL" Invoke-WebRequest -Uri "$ZIG_LLVM_CLANG_LLD_URL" -OutFile "$ZIG_LLVM_CLANG_LLD_NAME.zip" diff --git a/ci/x86_64-windows-release.ps1 b/ci/x86_64-windows-release.ps1 index 4b2cf674c7e1..8a3ddafb7369 100644 --- a/ci/x86_64-windows-release.ps1 +++ b/ci/x86_64-windows-release.ps1 @@ -6,6 +6,7 @@ $PREFIX_PATH = "$(Get-Location)\$ZIG_LLVM_CLANG_LLD_NAME" $ZIG = "$PREFIX_PATH\bin\zig.exe" $ZIG_LIB_DIR = "$(Get-Location)\lib" +choco install ninja Write-Output "Downloading $ZIG_LLVM_CLANG_LLD_URL" Invoke-WebRequest -Uri "$ZIG_LLVM_CLANG_LLD_URL" -OutFile "$ZIG_LLVM_CLANG_LLD_NAME.zip"