aboutsummaryrefslogtreecommitdiff
path: root/libc/ci/azure-install-rust.yml
diff options
context:
space:
mode:
Diffstat (limited to 'libc/ci/azure-install-rust.yml')
-rw-r--r--libc/ci/azure-install-rust.yml10
1 files changed, 7 insertions, 3 deletions
diff --git a/libc/ci/azure-install-rust.yml b/libc/ci/azure-install-rust.yml
index eba0669..31b0714 100644
--- a/libc/ci/azure-install-rust.yml
+++ b/libc/ci/azure-install-rust.yml
@@ -6,10 +6,12 @@ steps:
toolchain=nightly
fi
if command -v rustup; then
- rustup update $toolchain
+ # Uncomment when rustup on Azure is updated
+ #rustup set profile minimal
+ rustup update --force $toolchain
rustup default $toolchain
else
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $toolchain
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $toolchain --profile=minimal
echo "##vso[task.prependpath]$HOME/.cargo/bin"
fi
displayName: Install rust (unix)
@@ -17,7 +19,9 @@ steps:
- script: |
@echo on
if not defined TOOLCHAIN set TOOLCHAIN=nightly
- rustup update %TOOLCHAIN%-%TARGET%
+ :: Uncomment when rustup on Azure is updated
+ ::rustup set profile minimal
+ rustup update --no-self-update %TOOLCHAIN%-%TARGET%
rustup default %TOOLCHAIN%-%TARGET%
displayName: Install rust (windows)
condition: eq( variables['Agent.OS'], 'Windows_NT' )