-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathazure-pipelines.yml
43 lines (40 loc) · 1.42 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
42
43
trigger: none
pr: none
strategy:
matrix:
windows-stable:
imageName: 'windows-latest'
rustup_toolchain: stable
mac-stable:
imageName: 'macos-latest'
rustup_toolchain: stable
linux-stable:
imageName: 'ubuntu-latest'
rustup_toolchain: stable
pool:
vmImage: $(imageName)
steps:
# - script: |
# choco install bonjour
# displayName: Install Windows dependencies
# condition: eq( variables['Agent.OS'], 'Windows_NT' )
- 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
condition: ne( variables['Agent.OS'], 'Windows_NT' )
- script: |
curl -sSf -o rustup-init.exe https://win.rustup.rs
rustup-init.exe -y --default-host x86_64-pc-windows-msvc
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
displayName: Windows install rust
condition: eq( variables['Agent.OS'], 'Windows_NT' )
- script: |
sudo apt install -y libavahi-compat-libdnssd-dev libavahi-compat-libdnssd1
displayName: Install Linux dependencies
condition: eq( variables['Agent.OS'], 'Linux' )
- script: cargo build --all
displayName: Cargo build
- script: cargo test --all
displayName: Cargo test
condition: ne( variables['Agent.OS'], 'Linux' ) # disable linux testing until we fix it