-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
34 lines (33 loc) · 1003 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
jobs:
- job: check_formatting
displayName: Check formatting
pool:
vmImage: ubuntu-16.04
steps:
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
$HOME/.cargo/bin/rustup component add rustfmt
displayName: Install stable Rust
- script: |
$HOME/.cargo/bin/cargo fmt -- --check
displayName: Run rustfmt
- job: Linux
pool:
vmImage: ubuntu-16.04
strategy:
matrix:
minimum_supported_version:
rustup_toolchain: 1.36.0
steps:
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
displayName: Install rust
- script: |
rustc -Vv
cargo -V
displayName: Query rust and cargo versions
- script: _build/cargo-make.sh "0.22.0" "x86_64-unknown-linux-musl"
displayName: Install cargo-make binary
- script: cargo make ci-flow
displayName: CI flow