(ci) Specify CARGO_HOME env var to ensure conformity

This commit is contained in:
Christoph Herzog 2019-06-25 15:06:57 +02:00 committed by theduke
parent 6f051f9fcd
commit 522a38b0b1
2 changed files with 5 additions and 0 deletions

View file

@ -19,6 +19,7 @@ jobs:
- ${{ if ne(parameters.name, 'Windows') }}:
# Linux and macOS.
- script: |
export CARGO_HOME="$HOME/.cargo"
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
source /usr/local/cargo/env;
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
@ -26,6 +27,7 @@ jobs:
- ${{ if eq(parameters.name, 'Windows') }}:
# Windows.
- script: |
set CARGO_HOME=%USERPROFILE%\.cargo
curl -sSf -o rustup-init.exe https://win.rustup.rs
rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
set PATH=%PATH%;%USERPROFILE%\.cargo\bin

View file

@ -9,6 +9,7 @@ jobs:
vmImage: ubuntu-16.04
steps:
- script: |
export CARGO_HOME="$HOME/.cargo"
curl https://sh.rustup.rs -sSf | sh -s -- -y
$HOME/.cargo/bin/rustup component add rustfmt
displayName: Install stable Rust
@ -26,6 +27,7 @@ jobs:
vmImage: ubuntu-16.04
steps:
- script: |
export CARGO_HOME="$HOME/.cargo"
curl https://sh.rustup.rs -sSf | sh -s -- -y
$HOME/.cargo/bin/rustup component add rustfmt
displayName: Install stable Rust
@ -79,6 +81,7 @@ jobs:
vmImage: ubuntu-16.04
steps:
- script: |
export CARGO_HOME="$HOME/.cargo"
curl https://sh.rustup.rs -sSf | sh -s -- -y
displayName: Install stable Rust
- script: |