Skip to content

Commit 46d4e67

Browse files
committed
Use minimal profile for rustup
1 parent 3a1b3a7 commit 46d4e67

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.cirrus.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ task:
77
- curl https://sh.rustup.rs -sSf --output rustup.sh
88
- sh rustup.sh --default-toolchain nightly -y
99
- . $HOME/.cargo/env
10-
- rustup default nightly
10+
- rustup default nightly --profile=minimal
1111
test_script:
1212
- . $HOME/.cargo/env
1313
- LIBC_CI=1 sh ci/run.sh x86_64-unknown-freebsd
@@ -21,7 +21,7 @@ task:
2121
- curl https://sh.rustup.rs -sSf --output rustup.sh
2222
- sh rustup.sh -y
2323
- . $HOME/.cargo/env
24-
- rustup default stable
24+
- rustup default stable --profile=minimal
2525
test_script:
2626
- . $HOME/.cargo/env
2727
- LIBC_CI=1 sh ci/run.sh x86_64-unknown-freebsd
@@ -36,7 +36,7 @@ task:
3636
- curl https://sh.rustup.rs -sSf --output rustup.sh
3737
- sh rustup.sh --default-toolchain nightly -y
3838
- . $HOME/.cargo/env
39-
- rustup default nightly
39+
- rustup default nightly --profile=minimal
4040
test_script:
4141
- . $HOME/.cargo/env
4242
- LIBC_CI=1 sh ci/run.sh x86_64-unknown-freebsd

ci/azure-install-rust.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@ steps:
66
toolchain=nightly
77
fi
88
if command -v rustup; then
9+
rustup set profile minimal
910
rustup update $toolchain
1011
rustup default $toolchain
1112
else
12-
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $toolchain
13+
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $toolchain --profile=minimal
1314
echo "##vso[task.prependpath]$HOME/.cargo/bin"
1415
fi
1516
displayName: Install rust (unix)
1617
condition: ne( variables['Agent.OS'], 'Windows_NT' )
1718
- script: |
1819
@echo on
1920
if not defined TOOLCHAIN set TOOLCHAIN=nightly
21+
rustup set profile minimal
2022
rustup update --no-self-update %TOOLCHAIN%-%TARGET%
2123
rustup default %TOOLCHAIN%-%TARGET%
2224
displayName: Install rust (windows)

0 commit comments

Comments
 (0)