-
Notifications
You must be signed in to change notification settings - Fork 75
/
azure-pipelines.yml
41 lines (35 loc) · 1011 Bytes
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
jobs:
# linux-x64 build
- job: Linux_Build
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.23.0
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
- script: rustup default 1.23.0
- script: cargo test
# osx-x64 build
- job: OSX_Build
pool:
vmImage: 'macOS-10.13'
steps:
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.23.0
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
- script: rustup default 1.23.0
- script: cargo test
# win-x64 build
- job: Windows_Build
pool:
vmImage: 'vs2017-win2016'
variables:
rustflags: '-C target-feature=+crt-static'
steps:
- script: |
curl -sSf -o rustup-init.exe https://win.rustup.rs
rustup-init.exe -y --default-toolchain 1.23.0
- script: rustup default 1.23.0
- powershell: |
$env:PATH = "$env:PATH;$env:USERPROFILE\.cargo\bin"
cargo test