Skip to content

Commit a9ac7bc

Browse files
committed
[poc_windows_x86_64_compile] Check if rust is installed before uninstall
1 parent 5efb8f6 commit a9ac7bc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/poc-agent-build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ jobs:
2626
rustup default stable-x86_64-pc-windows-msvc
2727
2828
- name: Uninstall Rust with Chocolatey
29-
run: choco uninstall rust
29+
run: |
30+
if command -v rustc > /dev/null; then
31+
rustc --version
32+
choco uninstall -y rust
33+
else
34+
echo "Rust is not installed."
35+
fi
3036
3137
- name: Install MinGW and NSIS with Chocolatey
3238
run: choco install -y mingw nsis

0 commit comments

Comments
 (0)