diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b356d3a..0bb130a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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