Skip to content

Commit 9b1eb51

Browse files
Copilotjgarzik
andcommitted
Fix Windows build workflow MSVC check to use PowerShell error handling
Co-authored-by: jgarzik <[email protected]>
1 parent 0c50834 commit 9b1eb51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/windows-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
echo "=== Toolchain ==="
2727
rustc --version
2828
cargo --version
29-
cl /? 2>&1 | findstr /C:"Version" || echo "MSVC not in PATH"
29+
if (Get-Command cl -ErrorAction SilentlyContinue) { cl /? 2>&1 | findstr /C:"Version" } else { echo "MSVC not in PATH" }
3030
- name: Fetch
3131
run: cargo fetch
3232
- name: Build

0 commit comments

Comments
 (0)