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): make Windows build steps idempotent + re-enable self-hosted

Louis Beaumont1fb2f6a13f86
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index ba9a3ab73..aeb74320e 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -115,10 +115,16 @@ jobs:
echo "ℹ️ All self-hosted macOS runners offline — using GH-hosted macos-latest"
fi
- # Windows: GH-hosted for now — self-hosted needs 7zip/LLVM pre-installed
- # TODO: re-enable windows-desktop-test once deps are pre-installed
- echo "windows_runner=windows-2019" >> $GITHUB_OUTPUT
- echo "ℹ️ Using GH-hosted Windows runner (self-hosted missing build deps)"
+ # Windows: self-hosted (windows-desktop-test) → GH-hosted (windows-2019)
+ WINRUNNER=$(check_runner "windows-desktop-test")
+
+ if [ "$WINRUNNER" = "online" ]; then
+ echo "windows_runner=windows-desktop-test" >> $GITHUB_OUTPUT
+ echo "✅ Windows self-hosted runner is online"
+ else
+ echo "windows_runner=windows-2019" >> $GITHUB_OUTPUT
+ echo "ℹ️ Windows self-hosted offline — using GH-hosted windows-2019"
+ fi
fi
draft:
@@ -437,11 +443,16 @@ jobs:
if: matrix.os_type == 'windows'
shell: powershell
run: |
- $7zipUrl = "https://7-zip.org/a/7z2301-x64.exe"
- $7zipInstaller = "7z-installer.exe"
- Invoke-WebRequest -Uri $7zipUrl -OutFile $7zipInstaller
- Start-Process -FilePath .\$7zipInstaller -Args "/S" -Wait
- Remove-Item $7zipInstaller
+ # Skip if already installed (self-hosted runners)
+ if (Test-Path "C:\Program Files\7-Zip\7z.exe") {
+ Write-Host "7-Zip already installed, skipping"
+ } else {
+ $7zipUrl = "https://7-zip.org/a/7z2301-x64.exe"
+ $7zipInstaller = "7z-installer.exe"
+ Invoke-WebRequest -Uri $7zipUrl -OutFile $7zipInstaller
+ Start-Process -FilePath .\$7zipInstaller -Args "/S" -Wait
+ Remove-Item $7zipInstaller
+ }
echo "C:\Program Files\7-Zip" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
& "C:\Program Files\7-Zip\7z.exe" i