Skip to content

Commit 35b2e63

Browse files
committed
fix github-actions
1 parent 55f7ca2 commit 35b2e63

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

.github/workflows/make.ps1

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -69,27 +69,24 @@ Function Build-Project {
6969
}
7070
Exit $(Switch (Test-Path -Path $Var.tst) {
7171
true {
72-
((Get-ChildItem -Filter '*.lpk' -Recurse -File –Path $Var.tst).FullName |
73-
ForEach-Object {
74-
$Output = (
75-
& lazbuild --build-all --recursive --no-write-project $VAR.tst |
76-
Where-Object {
77-
$_.Contains('Linking')
78-
} | ForEach-Object {
79-
$_.Split(' ')[2]
80-
}
81-
)
82-
$exitCode = Switch ($LastExitCode) {
83-
0 {0}
84-
Default {
85-
$Output | Out-Host
86-
1
87-
}
72+
$Output = (
73+
& lazbuild --build-all --recursive --no-write-project $VAR.tst |
74+
Where-Object {
75+
$_.Contains('Linking')
76+
} | ForEach-Object {
77+
$_.Split(' ')[2]
8878
}
89-
Return $exitCode
90-
} | Measure-Object -Sum
91-
).Sum
92-
}
79+
)
80+
$Output = (& lazbuild --build-all --recursive --no-write-project $Output)
81+
$exitCode = Switch ($LastExitCode) {
82+
0 {0}
83+
Default {
84+
1
85+
}
86+
}
87+
$Output | Out-Host
88+
Return $exitCode
89+
K }
9390
Default {0}
9491
}) + (
9592
(Get-ChildItem -Filter '*.lpi' -Recurse -File –Path $Var.app).FullName |

0 commit comments

Comments
 (0)