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 895cd57
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 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) {
opam install --confirm-level=unsafe-yes "$pkg"
Write-Host "Testing `e[1;34m$pkg`e[0m"
Write-Host "::group::Testing $pkg"
opam install --color=always --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 "$pkg is not installable. `e[1;33mSkip`e[0m."; Break } # TODO: Remove when https://github.com/ocaml/opam/issues/6017 is fixed
20 { Write-Host "$pkg is not installable. `e[1;33mSkip`e[0m."; Break }
31 { Write-Host "`e[1;31m$pkg failed to build`e[0m."; $failed = $true; Break }
default { throw "Unexpected error $_" }
}
Write-Host
}
if ($failed) {
throw "build failed"
Expand Down

0 comments on commit 895cd57

Please sign in to comment.