Skip to content

Commit

Permalink
Break up the GHA logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 committed Jun 26, 2024
1 parent 6ca6253 commit 740e5e9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,18 @@ jobs:
$failed = $false
opam update
Foreach ($pkg in $pkgs) {
Write-Host -Foreground Blue "Testing $pkg"
Write-Host "::group::Testing $pkg"
opam install --confirm-level=unsafe-yes "$pkg"
Write-Host "::endgroup::"
switch ($LASTEXITCODE) {
0 { Break }
5 { Write-Host "$pkg is not installable. Skip."; Break } # TODO: Remove when https://github.com/ocaml/opam/issues/6017 is fixed
20 { Write-Host "$pkg is not installable. Skip."; Break }
31 { Write-Host "$pkg failed to build."; $failed = $true; Break }
5 { Write-Host -Foreground Yellow "$pkg is not installable. Skip."; Break } # TODO: Remove when https://github.com/ocaml/opam/issues/6017 is fixed
20 { Write-Host -Foreground Yellow "$pkg is not installable. Skip."; Break }
31 { Write-Host -Foreground Red "$pkg failed to build."; $failed = $true; Break }
default { throw "Unexpected error $_" }
}
Write-Host
}
if ($failed) {
throw "build failed"
Expand Down

0 comments on commit 740e5e9

Please sign in to comment.