Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ci): install PowerShell 7 on Windows runner

Ezra Ellettec9578f3c847f
diff --git a/infra/release-windows-runner/bootstrap.ps1 b/infra/release-windows-runner/bootstrap.ps1
index c76cbf327..f3fc96853 100644
--- a/infra/release-windows-runner/bootstrap.ps1
+++ b/infra/release-windows-runner/bootstrap.ps1
@@ -34,7 +34,7 @@ if (-not (Get-Command choco.exe -ErrorAction SilentlyContinue)) {
}
choco feature enable -n allowGlobalConfirmation | Out-Null
-choco install git git-lfs 7zip jq cmake ninja --no-progress
+choco install git git-lfs 7zip jq cmake ninja powershell-core --no-progress
$nodeVersion = '20.19.5'
$nodeMsi = Join-Path $env:TEMP "node-v$nodeVersion-x64.msi"
@@ -161,6 +161,7 @@ $commands = @(
'rustc --version',
'cargo --version',
'sccache --version'
+ 'pwsh --version'
)
foreach ($command in $commands) {
Write-Host "> $command"
diff --git a/infra/release-windows-runner/status.ps1 b/infra/release-windows-runner/status.ps1
index b882b0e12..764db3b49 100644
--- a/infra/release-windows-runner/status.ps1
+++ b/infra/release-windows-runner/status.ps1
@@ -22,6 +22,7 @@ $bootstrapTools = [ordered]@{
rustc = (rustc --version)
cargo = (cargo --version)
sccache = (sccache --version)
+ pwsh = (pwsh --version)
}
[ordered]@{
computer = $env:COMPUTERNAME