forked from microsoft/Windows-Machine-Learning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-samples.yml
233 lines (207 loc) · 7.35 KB
/
azure-pipelines-samples.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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
resources:
- repo: self
clean: true
variables:
SamplesBin: SamplesBin
WINDOWS_WINMD: C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.17763.0\Windows.winmd
strategy:
maxParallel: 8
matrix:
Release_x64:
BuildPlatform: x64
BuildConfiguration: Release
Debug_x64:
BuildPlatform: x64
BuildConfiguration: Debug
Release_x86:
BuildPlatform: x86
BuildConfiguration: Release
Debug_x86:
BuildPlatform: x86
BuildConfiguration: Debug
pool:
name: Package ES Lab E
# demands: agent.osversion -equals 10.0.17763
# CI trigger
trigger:
branches:
include:
- master
paths:
exclude:
- Tools
# PR validation trigger
pr:
branches:
include:
- master
paths:
exclude:
- Tools
steps:
- task: PowerShell@2
displayName: 'Check SDK Version 17763 is present'
inputs:
targetType: inline
script: dir "${ENV:programfiles(x86)}\windows Kits\10\include\10.0.17763.0\"
- task: DotNetCoreInstaller@0
displayName: 'Use .NET Core sdk 2.1.300'
inputs:
version: 2.1.300
condition: succeededOrFailed()
- task: NuGetToolInstaller@0
displayName: 'Use NuGet 4.9.2'
inputs:
versionSpec: 4.9.2
condition: succeededOrFailed()
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
displayName: 'NuGet restore'
condition: succeededOrFailed()
- task: VSBuild@1
displayName: 'Build UI test solution Testing/**/SamplesTest.sln'
inputs:
solution: 'Testing/**/SamplesTest.sln'
vsVersion: 15.0
msbuildArgs: '-v:diag /p:OutDir=$(System.DefaultWorkingDirectory)\bin\$(BuildPlatform)\$(BuildConfiguration)\SamplesTest\'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
clean: true
msbuildArchitecture: x64
createLogFile: true
condition: succeededOrFailed()
- task: VSBuild@1
displayName: 'Build AdapterSelection Sample'
inputs:
solution: Samples/AdapterSelection/AdapterSelection.sln
vsVersion: 15.0
msbuildArgs: '-v:diag /p:OutDir=$(System.DefaultWorkingDirectory)\bin\$(BuildPlatform)\$(BuildConfiguration)\AdapterSelection\'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
clean: true
msbuildArchitecture: x64
createLogFile: true
condition: succeededOrFailed()
- task: VSBuild@1
displayName: 'Build CustomOperatorCPU Sample'
inputs:
solution: Samples/CustomOperatorCPU/desktop/cpp/custom-operator-cpu-sample.sln
vsVersion: 15.0
msbuildArgs: '-v:diag /p:OutDir=$(System.DefaultWorkingDirectory)\bin\$(BuildPlatform)\$(BuildConfiguration)\CustomOperatorCPU\'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
clean: true
msbuildArchitecture: x64
createLogFile: true
condition: succeededOrFailed()
- task: VSBuild@1
displayName: 'Build MNIST-Tutorial-cs Sample'
inputs:
solution: 'Samples/MNIST/Tutorial/cs/mnist_demo.sln'
vsVersion: 15.0
msbuildArgs: '-v:diag /p:OutDir=$(System.DefaultWorkingDirectory)\bin\$(BuildPlatform)\$(BuildConfiguration)\MNIST-Tutorial\'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
clean: true
msbuildArchitecture: x64
createLogFile: true
condition: succeededOrFailed()
- task: VSBuild@1
displayName: 'Build MNIST-UWP-cs Sample'
inputs:
solution: 'Samples/MNIST/UWP/cs/mnist_demo.sln'
vsVersion: 15.0
msbuildArgs: '-v:diag /p:OutDir=$(System.DefaultWorkingDirectory)\bin\$(BuildPlatform)\$(BuildConfiguration)\MNIST-cs\'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
clean: true
msbuildArchitecture: x64
createLogFile: true
condition: succeededOrFailed()
- task: VSBuild@1
displayName: 'Build SqueezenetObjectDetection Sample'
inputs:
solution: Samples/SqueezeNetObjectDetection/squeezenetobjectdetection.sln
vsVersion: 15.0
msbuildArgs: '-v:diag /p:OutDir=$(System.DefaultWorkingDirectory)\bin\$(BuildPlatform)\$(BuildConfiguration)\SqueezeNetObjectDetection\'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
clean: true
msbuildArchitecture: x64
createLogFile: true
condition: succeededOrFailed()
- task: VSBuild@1
displayName: 'Build FNSCandyStyleTransfer-UWP-CS Sample'
inputs:
solution: Samples/FNSCandyStyleTransfer/UWP/CS/snapcandy.sln
vsVersion: 15.0
msbuildArgs: '-v:diag /p:OutDir=$(System.DefaultWorkingDirectory)\bin\$(BuildPlatform)\$(BuildConfiguration)\FNSCandyStyleTransfer\'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
clean: true
msbuildArchitecture: x64
createLogFile: true
condition: succeededOrFailed()
- task: VSBuild@1
displayName: 'Build MNIST-UWP-cppcx Sample'
inputs:
solution: 'Samples/MNIST/UWP/cppcx/mnist_cppcx.sln'
vsVersion: 15.0
msbuildArgs: '-v:diag /p:OutDir=$(System.DefaultWorkingDirectory)\bin\$(BuildPlatform)\$(BuildConfiguration)\MNIST-cppcx\'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
clean: true
msbuildArchitecture: x64
createLogFile: true
condition: succeededOrFailed()
- task: VSBuild@1
displayName: 'Build CustomTensorization Sample'
inputs:
solution: Samples/CustomTensorization/CustomTensorization.sln
vsVersion: 15.0
msbuildArgs: '-v:diag /p:OutDir=$(System.DefaultWorkingDirectory)\bin\$(BuildPlatform)\$(BuildConfiguration)\CustomTensorization\'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
clean: true
msbuildArchitecture: x64
createLogFile: true
condition: succeededOrFailed()
- task: VSBuild@1
displayName: 'Build Emoji Sample'
inputs:
solution: Samples/Emoji8/UWP/cs/Emoji8.sln
vsVersion: 15.0
msbuildArgs: '-v:diag /p:OutDir=$(System.DefaultWorkingDirectory)\bin\$(BuildPlatform)\$(BuildConfiguration)\Emoji8\'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
clean: true
msbuildArchitecture: x64
createLogFile: true
condition: succeededOrFailed()
- task: CopyFiles@2
inputs:
targetFolder: '$(Build.ArtifactStagingDirectory)\$(BuildPlatform)\$(BuildConfiguration)\'
sourceFolder: '$(System.DefaultWorkingDirectory)\bin\$(BuildPlatform)\$(BuildConfiguration)\'
Contents: |
**\SamplesTest\**
**\AppPackages\**
condition: succeededOrFailed()
- task: CopyFiles@2
inputs:
targetFolder: '$(Build.ArtifactStagingDirectory)\$(BuildPlatform)\$(BuildConfiguration)\'
sourceFolder: '$(System.DefaultWorkingDirectory)\bin\$(BuildPlatform)\$(BuildConfiguration)\'
Contents: |
?(AdapterSelection|CustomOperatorCPU|CustomTensorization)**\*
SqueezeNetObjectDetection\*
condition: succeededOrFailed()
- task: CopyFiles@2
inputs:
targetFolder: '$(Build.ArtifactStagingDirectory)\$(BuildPlatform)\$(BuildConfiguration)\SharedContent'
sourceFolder: 'SharedContent'
contents: '**\*'
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: Samples'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: WinMLPublicSamples-RS5
condition: succeededOrFailed()