]>
git.proxmox.com Git - rustc.git/blob - vendor/mdbook/ci/install-rustup.sh
2 # Install/update rustup.
3 # The first argument should be the toolchain to install.
5 # It is helpful to have this as a separate script due to some issues on
6 # Windows where immediately after `rustup self update`, rustup can fail with
7 # "Device or resource busy".
12 echo "First parameter must be toolchain to install."
17 # Install/update rustup.
20 echo `command -v rustup` `rustup -V` already installed
23 # macOS currently does not have rust pre-installed.
24 curl https
://sh.rustup.rs
-sSf | sh
-s -- -y --default-toolchain $TOOLCHAIN --profile=minimal
25 echo "##[add-path]$HOME/.cargo/bin"