More fixes

This commit is contained in:
Pranav Gaddamadugu 2024-10-22 14:33:23 -07:00
parent 2910107e03
commit fc6492f11d

View File

@ -31,8 +31,8 @@ commands:
command: | command: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env" . "$HOME/.cargo/env"
rustup toolchain install $RUST_VERSION --profile minimal rustup install $RUST_VERSION
rustup default $RUST_VERSION rustup override set $RUST_VERSION
cargo --version --verbose cargo --version --verbose
rustc --version rustc --version
if [ ! -f "Cargo.lock" ]; then if [ ! -f "Cargo.lock" ]; then
@ -48,8 +48,8 @@ commands:
command: | command: |
$ProgressPreference = "SilentlyContinue" $ProgressPreference = "SilentlyContinue"
choco uninstall rust choco uninstall rust
Invoke-WebRequest -Uri "https://win.rustup.rs/" -OutFile "C:\rustup-init.exe" Invoke-WebRequest -Uri "https://win.rustup.rs/" -OutFile "C:\\rustup-init.exe"
Start-Process .\rustup-init.exe -ArgumentList '-y' -Wait Start-Process "C:\\rustup-init.exe" -ArgumentList '-y' -Wait
$Env:Path += ";$Env:USERPROFILE\.cargo\bin" $Env:Path += ";$Env:USERPROFILE\.cargo\bin"
rustup install $Env:RUST_VERSION rustup install $Env:RUST_VERSION
rustup default $Env:RUST_VERSION rustup default $Env:RUST_VERSION