Browse Source

Run the `Minimum Rust` CI job on Windows and fix Linux.

urgh
Edward Barnard 6 years ago
parent
commit
552b139790
  1. 20
      azure-pipelines.yml
  2. 3
      ci/azure-install-rust.yml

20
azure-pipelines.yml

@ -2,12 +2,24 @@ trigger:
- master
jobs:
- job: min
displayName: Minimum Rust
- job: min_linux
pool:
vmImage: ubuntu-16.04
displayName: Minimum Rust (Linux)
variables:
TOOLCHAIN: 1.16.0
steps:
- template: ci/azure-install-rust.yml
- script: cargo build
- job: min_Windows
pool:
vmImage: vs2017-win2016
displayName: Minimum Rust (Windows)
variables:
TOOLCHAIN: 1.16.0
steps:
- template: ci/azure-install-rust.yml
parameters:
toolchain: 1.16.0
- script: cargo build
- job: Linux

3
ci/azure-install-rust.yml

@ -11,8 +11,9 @@ steps:
condition: ne( variables['Agent.OS'], 'Windows_NT' )
- script: |
IF "%TOOLCHAIN%"=="" (SET TOOLCHAIN=stable-%TARGET%)
curl -sSf -o rustup-init.exe https://win.rustup.rs
rustup-init.exe -y --default-toolchain stable-%TARGET%
rustup-init.exe -y --default-toolchain %TOOLCHAIN%
echo ##vso[task.prependpath]%USERPROFILE%\.cargo\bin
displayName: Install rust (windows)
condition: eq( variables['Agent.OS'], 'Windows_NT' )

Loading…
Cancel
Save