Skip to content

Commit

Permalink
Use minimal profile for rustup
Browse files Browse the repository at this point in the history
  • Loading branch information
mati865 committed Oct 15, 2019
1 parent 3a1b3a7 commit 792a9a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ task:
setup_script:
- pkg install -y curl
- curl https://sh.rustup.rs -sSf --output rustup.sh
- sh rustup.sh --default-toolchain nightly -y
- sh rustup.sh --default-toolchain nightly -y --profile=minimal
- . $HOME/.cargo/env
- rustup default nightly
test_script:
Expand All @@ -19,7 +19,7 @@ task:
setup_script:
- pkg install -y curl
- curl https://sh.rustup.rs -sSf --output rustup.sh
- sh rustup.sh -y
- sh rustup.sh -y --profile=minimal
- . $HOME/.cargo/env
- rustup default stable
test_script:
Expand All @@ -34,7 +34,7 @@ task:
setup_script:
- pkg install -y curl
- curl https://sh.rustup.rs -sSf --output rustup.sh
- sh rustup.sh --default-toolchain nightly -y
- sh rustup.sh --default-toolchain nightly -y --profile=minimal
- . $HOME/.cargo/env
- rustup default nightly
test_script:
Expand Down
6 changes: 5 additions & 1 deletion ci/azure-install-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,21 @@ steps:
toolchain=nightly
fi
if command -v rustup; then
# Uncomment when rustup on Azure is updated
#rustup set profile minimal
rustup update $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)
condition: ne( variables['Agent.OS'], 'Windows_NT' )
- script: |
@echo on
if not defined TOOLCHAIN set TOOLCHAIN=nightly
:: 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)
Expand Down

0 comments on commit 792a9a1

Please sign in to comment.