CI: show the verbose Windows build's error lines and tail

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
foxyzandClaude Opus 5.5 committed 2026-10-10 00:23:11 +03:00
1 parent 05b06b1fc1
commit f7f2f0cddd
1 file changed
+4 -1
+4 -1
View File
@@ -36,7 +36,10 @@ if (-not $SkipBuild) {
$ErrorActionPreference = 'Continue' $ErrorActionPreference = 'Continue'
$log = cmd /c "flutter build windows --release -v --dart-define=APP_VERSION=$Version 2>&1" $log = cmd /c "flutter build windows --release -v --dart-define=APP_VERSION=$Version 2>&1"
$ErrorActionPreference = 'Stop' $ErrorActionPreference = 'Stop'
$log | Select-String -Pattern 'error C\d+|error LNK\d+|fatal error|: error |error MSB' | ForEach-Object { $_.Line } | Select-Object -Unique -First 40 Write-Host '--- error lines ---'
$log | Select-String -Pattern 'error' | ForEach-Object { $_.Line } | Select-Object -Unique -First 60
Write-Host '--- last lines ---'
$log | Select-Object -Last 80
throw 'flutter build windows failed' throw 'flutter build windows failed'
} }
} finally { Pop-Location } } finally { Pop-Location }