(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') }}:
|
- ${{ if ne(parameters.name, 'Windows') }}:
|
||||||
# Linux and macOS.
|
# Linux and macOS.
|
||||||
- script: |
|
- script: |
|
||||||
|
export CARGO_HOME="$HOME/.cargo"
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
|
||||||
source /usr/local/cargo/env;
|
source /usr/local/cargo/env;
|
||||||
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
|
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
|
||||||
|
@ -26,6 +27,7 @@ jobs:
|
||||||
- ${{ if eq(parameters.name, 'Windows') }}:
|
- ${{ if eq(parameters.name, 'Windows') }}:
|
||||||
# Windows.
|
# Windows.
|
||||||
- script: |
|
- script: |
|
||||||
|
set CARGO_HOME=%USERPROFILE%\.cargo
|
||||||
curl -sSf -o rustup-init.exe https://win.rustup.rs
|
curl -sSf -o rustup-init.exe https://win.rustup.rs
|
||||||
rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
|
rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
|
||||||
set PATH=%PATH%;%USERPROFILE%\.cargo\bin
|
set PATH=%PATH%;%USERPROFILE%\.cargo\bin
|
||||||
|
|
|
@ -9,6 +9,7 @@ jobs:
|
||||||
vmImage: ubuntu-16.04
|
vmImage: ubuntu-16.04
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
|
export CARGO_HOME="$HOME/.cargo"
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||||
$HOME/.cargo/bin/rustup component add rustfmt
|
$HOME/.cargo/bin/rustup component add rustfmt
|
||||||
displayName: Install stable Rust
|
displayName: Install stable Rust
|
||||||
|
@ -26,6 +27,7 @@ jobs:
|
||||||
vmImage: ubuntu-16.04
|
vmImage: ubuntu-16.04
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
|
export CARGO_HOME="$HOME/.cargo"
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||||
$HOME/.cargo/bin/rustup component add rustfmt
|
$HOME/.cargo/bin/rustup component add rustfmt
|
||||||
displayName: Install stable Rust
|
displayName: Install stable Rust
|
||||||
|
@ -79,6 +81,7 @@ jobs:
|
||||||
vmImage: ubuntu-16.04
|
vmImage: ubuntu-16.04
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
|
export CARGO_HOME="$HOME/.cargo"
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||||
displayName: Install stable Rust
|
displayName: Install stable Rust
|
||||||
- script: |
|
- script: |
|
||||||
|
|
Loading…
Add table
Reference in a new issue