(ci) Specify CARGO_HOME env var to ensure conformity
This commit is contained in:
parent
6f051f9fcd
commit
522a38b0b1
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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: |
|
||||
|
|
Loading…
Reference in a new issue