CI: show the Windows start log as annotations
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
16b7572d57
commit
5f9ad28b6d
1 changed files with 6 additions and 3 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
|
@ -50,9 +50,12 @@ jobs:
|
|||
$p = Start-Process target/release/chesspenguin.exe -PassThru
|
||||
$p | Wait-Process -Timeout 90 -ErrorAction SilentlyContinue
|
||||
Get-Process chesspenguin -ErrorAction SilentlyContinue | Stop-Process -Force
|
||||
$log = "$env:APPDATA/vrubelroman/ChessPenguin/config/chesspenguin.log"
|
||||
if (Test-Path $log) { Get-Content $log }
|
||||
Get-Content "$env:APPDATA/vrubelroman/ChessPenguin/config/graphics" -ErrorAction SilentlyContinue
|
||||
$dir = "$env:APPDATA/vrubelroman/ChessPenguin/config"
|
||||
# Annotations: readable on the run page without signing in.
|
||||
$lines = @("exit code: $($p.ExitCode)")
|
||||
if (Test-Path "$dir/graphics") { $lines += "graphics: " + (Get-Content "$dir/graphics") }
|
||||
if (Test-Path "$dir/chesspenguin.log") { $lines += Get-Content "$dir/chesspenguin.log" | Select-Object -First 40 }
|
||||
foreach ($l in $lines) { Write-Output "::warning title=Windows start::$($l -replace '%','%25')" }
|
||||
if (-not (Test-Path start.png)) { throw "no screenshot: the window did not start" }
|
||||
- uses: actions/upload-artifact@v7
|
||||
if: always()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue