We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 770f827 commit 30822abCopy full SHA for 30822ab
.github/workflows/make.ps1
@@ -95,7 +95,7 @@ Function Build-Project {
95
ForEach-Object {
96
$Output = (& lazbuild --build-all --recursive --no-write-project $_)
97
$Result = @("$([char]27)[32m.... [$($LastExitCode)] build project $($_)$([char]27)[0m")
98
- $exitCode = switch ($LastExitCode) {
+ $exitCode = $(switch ($LastExitCode) {
99
0 {
100
$Result += $Output | Select-String -Pattern 'Linking'
101
0
@@ -104,7 +104,7 @@ Function Build-Project {
104
$Result += $Output | Select-String -Pattern 'Error:', 'Fatal:'
105
1
106
}
107
- }
+ })
108
$Result | Out-Host
109
return $exitCode
110
} | Measure-Object -Sum
0 commit comments