From 6d1bedee3ee164ed0151f8adab1313be5915d652 Mon Sep 17 00:00:00 2001 From: JJ Liebig Date: Mon, 27 Jul 2026 13:15:23 +0200 Subject: fix: make native windows checks reliable (#1925) --- .github/workflows/ci.yml | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa655578..16fc5c2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -141,33 +141,7 @@ jobs: - name: Run Windows checks if: matrix.kind == 'windows' shell: pwsh - run: | - $ErrorActionPreference = "Stop" - function Invoke-Checked { - param([string]$Command, [string[]]$Arguments) - & $Command @Arguments - if ($LASTEXITCODE -ne 0) { - throw "command failed with exit code $LASTEXITCODE`: $Command $($Arguments -join ' ')" - } - } - function Invoke-CargoWithZigCacheRecovery { - param([string[]]$Arguments) - & cargo @Arguments - if ($LASTEXITCODE -eq 0) { - return - } - - Write-Warning "cargo compile failed; clearing Zig build caches and retrying once" - Remove-Item -Recurse -Force .zig-cache -ErrorAction SilentlyContinue - Remove-Item -Recurse -Force vendor/libghostty-vt/.zig-cache -ErrorAction SilentlyContinue - Remove-Item -Recurse -Force vendor/libghostty-vt/zig-out -ErrorAction SilentlyContinue - Invoke-Checked cargo $Arguments - } - Invoke-Checked cargo @("fmt", "--check") - Invoke-CargoWithZigCacheRecovery @("clippy", "--bin", "herdr", "--locked", "--target", "x86_64-pc-windows-msvc", "--", "-D", "warnings") - Invoke-Checked cargo @("test", "--locked", "--target", "x86_64-pc-windows-msvc", "--bin", "herdr", "windows_") - Invoke-Checked cargo @("test", "--locked", "--target", "x86_64-pc-windows-msvc", "--bin", "herdr", "server::client_transport::tests") - Invoke-Checked cargo @("build", "--locked", "--target", "x86_64-pc-windows-msvc") + run: .\scripts\windows_check.ps1 -Mode check - name: Smoke ConPTY pane if: matrix.kind == 'windows' -- cgit v1.2.3