forked from microsoft/media-foundation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
140 lines (124 loc) · 4.29 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
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
resources:
- repo: self
clean: true
variables:
# SamplesBin: SamplesBin
# WINDOWS_WINMD: C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.18362.0\Windows.winmd
WindowsTargetPlatformVersion: 10.0.19041.0
# For 19H1, WindowsTargetPlatformVersion: 10.0.18362.0
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: $(AgentPool)
# 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 18362 is present'
inputs:
targetType: inline
script: dir "${ENV:programfiles(x86)}\windows Kits\10\include\10.0.18362.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 MediaEngineUWP Sample'
inputs:
solution: samples/MediaEngineUWPSample/src/MediaEngineUWPSample.sln
vsVersion: 16.0
msbuildArgs: '-v:diag /p:OutDir=$(System.DefaultWorkingDirectory)\bin\$(BuildPlatform)\$(BuildConfiguration)\MediaEngineUWP\ /p:WindowsTargetPlatformVersion=$(WindowsTargetPlatformVersion)'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
clean: true
msbuildArchitecture: x64
createLogFile: true
condition: succeededOrFailed()
- task: VSBuild@1
displayName: 'Build MediaEngineEMEUWP Sample'
inputs:
solution: samples/MediaEngineEMEUWPSample/src/MediaEngineEMEUWPSample.sln
vsVersion: 16.0
msbuildArgs: '-v:diag /p:OutDir=$(System.DefaultWorkingDirectory)\bin\$(BuildPlatform)\$(BuildConfiguration)\MediaEngineEMEUWP\ /p:WindowsTargetPlatformVersion=$(WindowsTargetPlatformVersion)'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
clean: true
msbuildArchitecture: x64
createLogFile: true
condition: succeededOrFailed()
- task: VSBuild@1
displayName: 'Build MediaEngineDCompWin32 Sample'
inputs:
solution: samples/MediaEngineDCompWin32Sample/src/MediaEngineDCompWin32Sample.sln
vsVersion: 16.0
msbuildArgs: '-v:diag /p:OutDir=$(System.DefaultWorkingDirectory)\bin\$(BuildPlatform)\$(BuildConfiguration)\MediaEngineDCompWin32Sample\ /p:WindowsTargetPlatformVersion=$(WindowsTargetPlatformVersion)'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
clean: true
msbuildArchitecture: x64
createLogFile: true
condition: succeededOrFailed()
- task: VSBuild@1
displayName: 'Build storeCDM Sample'
inputs:
solution: samples/storecdm/clearkeyStoreCDM/clearkeyStoreCDM.sln
vsVersion: 16.0
msbuildArgs: '-v:diag /p:OutDir=$(System.DefaultWorkingDirectory)\bin\$(BuildPlatform)\$(BuildConfiguration)\clearkeyStoreCDM\ /p:WindowsTargetPlatformVersion=$(WindowsTargetPlatformVersion)'
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: |
**\MediaEngineUWP\**
**\MediaEngineDCompWin32Sample\**
**\MediaEngineEMEUWP\**
condition: succeededOrFailed()
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: Samples'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: MFPublicSamples
condition: succeededOrFailed()