forked from cloudflare/boringtun
-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
67 lines (62 loc) · 1.59 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
jobs:
- job: Windows
displayName: 'Windows'
pool:
vmImage: 'vs2017-win2016'
continueOnError: true
steps:
- script: curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
displayName: 'Install cargo'
- script: |
PATH=%PATH%;%USERPROFILE%\.cargo\bin
cargo build --lib
displayName: 'Build library'
- script: |
PATH=%PATH%;%USERPROFILE%\.cargo\bin
cargo test --lib
displayName: 'Test library'
- job: macOS
displayName: 'macOS'
pool:
vmImage: 'macOS-10.13'
continueOnError: true
steps:
- script: |
brew install wireguard-go wireguard-tools
displayName: 'Install wireguard-go'
- template: ci/azure-build.yml
parameters:
runBinaryTests: 'false'
- script: |
export PATH=$PATH:$HOME/.cargo/bin
rustup target add aarch64-apple-ios
cargo build --lib --target aarch64-apple-ios
displayName: 'Build library for iOS'
- job: Linux_x86_64
displayName: 'Linux x86-64'
pool:
vmImage: 'ubuntu-16.04'
continueOnError: true
steps:
- script: |
sudo add-apt-repository ppa:wireguard/wireguard
sudo apt-get update
sudo apt-get install wireguard -y
displayName: 'Install wireguard'
- template: ci/azure-build.yml
- job: Linux_aarch64
displayName: 'Linux aarch64'
pool:
name: default
demands: agent.name -equals aarch64
continueOnError: true
steps:
- template: ci/azure-build.yml
- job: Linux_armv7
displayName: 'Linux armv7'
pool:
name: default
demands: agent.name -equals armv7
continueOnError: true
steps:
- template: ci/azure-build.yml