Skip to content

Commit 708f4e6

Browse files
author
Nie Zhihe
committed
chore: refine codes
1 parent 53f8996 commit 708f4e6

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/build_node_shared.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,17 @@ jobs:
221221
$exitCode = $LASTEXITCODE
222222
223223
if ($exitCode -eq 0) {
224-
Write-Host "`n✓ Visual Studio components installed successfully!"
224+
Write-Host ""
225+
Write-Host "[OK] Visual Studio components installed successfully!"
225226
} elseif ($exitCode -eq 3010) {
226-
Write-Host "`n✓ Visual Studio components installed successfully! (Reboot requested but skipped)"
227+
Write-Host ""
228+
Write-Host "[OK] Visual Studio components installed successfully! (Reboot requested but skipped)"
227229
} elseif ($exitCode -eq 1641) {
228-
Write-Host "`n✓ Visual Studio components installed successfully! (Restart initiated)"
230+
Write-Host ""
231+
Write-Host "[OK] Visual Studio components installed successfully! (Restart initiated)"
229232
} else {
230-
Write-Host "`n⚠ VS Installer returned exit code: $exitCode"
233+
Write-Host ""
234+
Write-Host "[WARN] VS Installer returned exit code: $exitCode"
231235
if ($exitCode -eq 87) {
232236
Write-Host "Exit code 87 usually means components are already installed or parameters are incorrect."
233237
Write-Host "Continuing with build process..."
@@ -281,15 +285,15 @@ jobs:
281285
$clangPath = & $vsWhere -path "$vsPath" -find "**/bin/Hostx64/clang.exe" | Select-Object -First 1
282286
283287
if ($clPath) {
284-
Write-Host " MSVC cl.exe: $clPath"
288+
Write-Host " [OK] MSVC cl.exe: $clPath"
285289
} else {
286-
Write-Host " MSVC cl.exe: NOT FOUND"
290+
Write-Host " [NOT FOUND] MSVC cl.exe"
287291
}
288292
289293
if ($clangPath) {
290-
Write-Host " Clang: $clangPath"
294+
Write-Host " [OK] Clang: $clangPath"
291295
} else {
292-
Write-Host " ✗ Clang: NOT FOUND (May need to install C++ workload)"
296+
Write-Host " [NOT FOUND] Clang (May need to install C++ workload)"
293297
}
294298
295299
Write-Host "`n=========================================="

0 commit comments

Comments
 (0)