fix: use powershell -Command for download, keep shell:cmd for execution

This commit is contained in:
2026-07-07 19:46:27 +00:00
parent a086a575be
commit 19a3ea489b
+2 -3
View File
@@ -37,9 +37,8 @@ jobs:
with: { node-version: 20 }
- name: Install Rust
run: |
where rustc 2>nul || (
curl -L -o rustup-init.exe https://win.rustup.rs/x86_64 && rustup-init.exe -y --default-toolchain stable
)
powershell -ExecutionPolicy Bypass -Command "Invoke-WebRequest -Uri https://win.rustup.rs/x86_64 -OutFile rustup-init.exe"
rustup-init.exe -y --default-toolchain stable
set PATH=%USERPROFILE%\.cargo\bin;%PATH%
rustc --version
shell: cmd