Skip to content

Commit 485ee4f

Browse files
committed
build: use rustup minimal profile to speed up Rust installation time
1 parent 8fae2dd commit 485ee4f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: .travis.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
language: rust
2-
3-
rust: nightly
1+
dist: xenial
2+
language: minimal
43

54
os:
65
- linux
@@ -19,6 +18,9 @@ env:
1918
- RUST_BACKTRACE=1
2019
- secure: "OKulfkA5OGd/d1IhvBKzRkHQwMcWjzrzbimo7+5NhkUkWxndAzl+719TB3wWvIh1i2wXXrEXsyZkXM5FtRrHm55v1VKQ5ibjEvFg1w3NIg81iDyoLq186fLqywvxGkOAFPrsePPsBj5USd5xvhwwbrjO6L7/RK6Z8shBwOSc41s="
2120

21+
before_install:
22+
- curl -sSL https://sh.rustup.rs | sh -s -- -y --default-toolchain=nightly --profile=minimal
23+
- export PATH="$HOME/.cargo/bin:$PATH"
2224
install:
2325
- |
2426
if [ -z ${INTEGRATION} ]; then

Diff for: appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ branches:
1515

1616
install:
1717
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
18-
- rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly
18+
- rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly --profile=minimal
1919
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
2020
- del rust-toolchain
2121
- cargo install --git https://github.com/kennytm/rustup-toolchain-install-master --debug || echo "rustup-toolchain-install-master already installed"

0 commit comments

Comments
 (0)