Try another way to make OSX and Linux builds happy.
@@ -32,9 +32,8 @@ jobs:
fetchDepth: 5
- script: |
set -e
- curl https://sh.rustup.rs -sSf | sh -s -- -y
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain beta-x86_64-unknown-linux-gnu
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
- rustup default beta
displayName: 'Install Rust'
- script: RUST_VERSION=beta make unit_test
displayName: 'Run unit tests'
@@ -53,9 +52,8 @@ jobs:
fetchDepth: 5
- script: |
set -e
- curl https://sh.rustup.rs -sSf | sh -s -- -y
+ curl https://sh.rustup.rs -sSf | sh -s -- -y nightly-x86_64-unknown-linux-gnu
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
- rustup default nightly
displayName: 'Install Rust'
- script: RUST_VERSION=nightly make unit_test
displayName: 'Run unit tests'
@@ -97,9 +95,8 @@ jobs:
fetchDepth: 5
- script: |
set -e
- curl https://sh.rustup.rs -sSf | sh -s -- -y
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain beta
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
- rustup default beta
displayName: 'Install Rust'
- script: RUST_VERSION=beta make unit_test
displayName: 'Run unit tests'
@@ -118,9 +115,8 @@ jobs:
fetchDepth: 5
- script: |
set -e
- curl https://sh.rustup.rs -sSf | sh -s -- -y
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
- rustup default nightly
displayName: 'Install Rust'
- script: RUST_VERSION=nightly make unit_test
displayName: 'Run unit tests'
