-
Notifications
You must be signed in to change notification settings - Fork 4
/
azure-pipelines.yml
41 lines (39 loc) · 1.02 KB
/
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
trigger:
- master
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-latest'
timeoutInMinutes: 0
steps:
- script: git submodule update --init --recursive
displayName: 'Submodules'
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable -y
source ~/.cargo/env
rustup update stable
displayName: 'Rust setup'
- script: cargo test --release --all
displayName: 'Run tests'
- script: cargo build --release
displayName: 'Build artifacts'
- job: MacOS
pool:
vmImage: 'macOS-latest'
timeoutInMinutes: 0
steps:
- script: git submodule update --init --recursive
displayName: 'Submodules'
- script: |
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable -y
source ~/.cargo/env
rustup update stable
displayName: 'Rust setup'
- script: |
source ~/.cargo/env
cargo test --release --all
displayName: 'Run tests'
- script: |
source ~/.cargo/env
cargo build --release
displayName: 'Build artifacts'