-
Notifications
You must be signed in to change notification settings - Fork 9
/
azure-pipelines.windows.yml
206 lines (174 loc) · 4.92 KB
/
azure-pipelines.windows.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
name: Roaster Windows Build
trigger:
- master
pool:
demands:
- Agent.OS -equals Windows_NT
stages:
- stage: version
jobs:
- job: versioning
steps:
- powershell: |
$versionPrefix = 'v'
$rawVersion = git describe --long --match ($versionPrefix+'*')
$time = (Get-Date).ToUniversalTime().ToString("yyyyMMddHHmmss")
$iter = $rawVersion.split('-')[-2]
$hash = $rawVersion.split('-')[-1]
$tag = $rawVersion.split('-')[0].split('/')[-1]
# NuGet drops some trailing zero.
$nullable_iter = '.' + $iter
if ($iter -eq '0')
{
$nullable_iter = ''
}
$full_version = $tag.TrimStart($versionPrefix) + $nullable_iter + '-T' + $time + $hash
Write-Host "Generate version $full_version"
Write-Host "##vso[build.updatebuildnumber]$full_version"
displayName: "Set build number"
- stage: prep
dependsOn: version
jobs:
- job: build
steps:
- template: azure-pipelines/build_stage.windows.yml
parameters:
stage_name: vsbuildtools,cmake
packages: none
- job: tool
dependsOn: build
steps:
- template: azure-pipelines/build_stage.windows.yml
parameters:
stage_name: zlib,openssl,c-ares,curl
packages: zlib,openssl,c-ares
- job: gpu
dependsOn: tool
steps:
- template: azure-pipelines/build_stage.windows.yml
parameters:
stage_name: cuda,cudnn,tensorrt
packages: cu*,!curl,tensorrt
- job: mkl
dependsOn: gpu
steps:
- template: azure-pipelines/build_stage.windows.yml
parameters:
stage_name: intel,mklml
packages: mkl,mkl-dev,mklml
- stage: build
dependsOn: prep
jobs:
- job: env
steps:
- powershell: |
${Env:PATH}=[System.Environment]::GetEnvironmentVariable("PATH","Machine")
cmake --version
nvcc -V
python -V
- job: freetype_1
continueOnError: 'true'
dependsOn: env
steps:
- template: azure-pipelines/build_stage.windows.yml
parameters:
stage_name: freetype
packages: none
- job: harfbuzz
dependsOn: freetype_1
steps:
- template: azure-pipelines/build_stage.windows.yml
- job: freetype_2
dependsOn: harfbuzz
steps:
- template: azure-pipelines/build_stage.windows.yml
parameters:
stage_name: freetype
- job: boost
timeoutInMinutes: "240"
dependsOn: freetype_2
steps:
- template: azure-pipelines/build_stage.windows.yml
- job: jsoncpp
dependsOn: boost
steps:
- template: azure-pipelines/build_stage.windows.yml
parameters:
packages: jsoncpp*
- job: utf8proc
dependsOn: jsoncpp
steps:
- template: azure-pipelines/build_stage.windows.yml
- job: eigen
dependsOn: utf8proc
steps:
- template: azure-pipelines/build_stage.windows.yml
- job: pybind11
dependsOn: eigen
steps:
- template: azure-pipelines/build_stage.windows.yml
parameters:
packages: none
- job: mkl_dnn
dependsOn: pybind11
steps:
- template: azure-pipelines/build_stage.windows.yml
parameters:
stage_name: mkl-dnn
packages: mkldnn
- job: gflags
dependsOn: mkl_dnn
steps:
- template: azure-pipelines/build_stage.windows.yml
- job: glog
dependsOn: gflags
steps:
- template: azure-pipelines/build_stage.windows.yml
- job: gtest
dependsOn: glog
steps:
- template: azure-pipelines/build_stage.windows.yml
- job: benchmark
dependsOn: gtest
steps:
- template: azure-pipelines/build_stage.windows.yml
parameters:
packages: none
- job: snappy
dependsOn: benchmark
steps:
- template: azure-pipelines/build_stage.windows.yml
- job: protobuf
dependsOn: snappy
steps:
- template: azure-pipelines/build_stage.windows.yml
parameters:
packages: protobuf*
- job: grpc
dependsOn: protobuf
steps:
- template: azure-pipelines/build_stage.windows.yml
- job: opencv
dependsOn: grpc
timeoutInMinutes: "720"
steps:
- template: azure-pipelines/build_stage.windows.yml
parameters:
packages: opencv*
- job: rocksdb
dependsOn: opencv
steps:
- template: azure-pipelines/build_stage.windows.yml
parameters:
packages: rocksdb*
- job: onnx
dependsOn: rocksdb
steps:
- template: azure-pipelines/build_stage.windows.yml
- job: ort
dependsOn: onnx
timeoutInMinutes: "720"
steps:
- template: azure-pipelines/build_stage.windows.yml
parameters:
packages: ort*