-
Notifications
You must be signed in to change notification settings - Fork 4
/
azure-pipelines.yml
66 lines (59 loc) · 1.53 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
# TODO:
# 1. add different builds for x86/x64.
# 2. check for updates weekly.
trigger:
- master
jobs:
- job: "Generate"
strategy:
matrix:
linux:
Image: 'ubuntu-latest'
vpath: "/usr/local/share/vcpkg"
get_yasm: "sudo apt-get install yasm"
triplet: x64-linux
gen: "Unix Makefiles"
windows:
Image: 'windows-latest'
vpath: "C:\\vcpkg"
get_yasm: "echo" # on Windows, yasm is automatically installed if missing
triplet: x64-windows
gen: "Visual Studio 16 2019"
mac:
Image: 'macos-latest'
vpath: "/usr/local/share/vcpkg"
get_yasm: "brew install yasm"
triplet: x64-osx
gen: "Xcode"
maxParallel: 4
variables:
VCPKG_DEFAULT_TRIPLET: $(triplet)
VCPKG_ROOT: $(vpath)
VCPKG_FEATURE_FLAGS: "manifests,binarycaching"
pool:
vmImage: $(Image)
steps:
- task: Cache@2
inputs:
key: 'CACHED_DEPS'
path: '$(vpath)'
cacheHitVar: 'GOT_CACHE'
- task: CmdLine@2
inputs:
script: |
$(get_yasm)
condition: ne(variables.GOT_CACHE, 'true')
- task: CMake@1
inputs:
cmakeArgs: '.. -DCMAKE_BUILD_TYPE=Release -G "$(gen)"'
displayName: 'Generate for '
- job: "Build"
dependsOn: Generate
condition: succeeded()
pool:
vmImage: $(Image)
steps:
- task: CMake@1
inputs:
cmakeArgs: '--build .'
displayName: 'Build for '