forked from microsoft/msquic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOneBranch.Official.yml
229 lines (217 loc) · 7.6 KB
/
OneBranch.Official.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
#################################################################################
# OneBranch Pipelines - Official #
# This pipeline was created by EasyStart from a sample located at: #
# https://aka.ms/obpipelines/easystart/samples #
# Documentation: https://aka.ms/obpipelines #
# Yaml Schema: https://aka.ms/obpipelines/yaml/schema #
# Retail Tasks: https://aka.ms/obpipelines/tasks #
# Support: https://aka.ms/onebranchsup #
#################################################################################
trigger:
batch: true
branches:
include:
- main
- release/*
- msrc/*
tags:
include:
- v*
parameters: # parameters are shown up in ADO UI in a build queue time
- name: 'debug'
displayName: 'Enable debug output'
type: boolean
default: false
- name: 'WindowsContainerImage2DockerTag'
displayName: 'WindowsContainerImage2 DockerTag'
type: string
default: '20240713.1' # if initializing docker takes too long, grab a newer docker image from Docker.Official pipeline.
variables:
CDP_DEFINITION_BUILD_COUNT: $[counter('', 0)] # needed for onebranch.pipeline.version task https://aka.ms/obpipelines/versioning
system.debug: ${{ parameters.debug }}
ENABLE_PRS_DELAYSIGN: 1
DisableDockerDetector: true
ROOT: $(Build.SourcesDirectory)
REPOROOT: $(Build.SourcesDirectory)
OUTPUTROOT: $(REPOROOT)\out
NUGET_XMLDOC_MODE: none
ONEBRANCH_AME_ACR_LOGIN: onebranch.azurecr.io, cdpxb7b51c2f738e43e48f7605d9a8e5f6d700.azurecr.io
resources:
repositories:
- repository: templates
type: git
name: OneBranch.Pipelines/GovernedTemplates
ref: refs/heads/main
extends:
template: v2/OneBranch.Official.CrossPlat.yml@templates # https://aka.ms/obpipelines/templates
parameters:
cloudvault: # https://aka.ms/obpipelines/cloudvault
enabled: false
globalSdl: # https://aka.ms/obpipelines/sdl
sbom:
validate: false
tsa:
enabled: false # onebranch publish all sdl results to TSA. If TSA is disabled all SDL tools will forced into 'break' build mode.
credscan:
suppressionsFile: $(Build.SourcesDirectory)\.azure\CredScanSuppressions.json
binskim:
break: true # always break the build on binskim issues in addition to TSA upload
policheck:
break: true # always break the build on policheck issues. You can disable it by setting to 'false'
suppression:
suppressionFile: $(Build.SourcesDirectory)\.azure\openssl.gdnsuppress
featureFlags:
linuxEsrpSigningPreview: true
WindowsHostVersion: '1ESWindows2022'
containers:
- container: windows_build_container
image: 'onebranch.azurecr.io/windows/ltsc2022/vse2022:latest'
type: Windows
- container: windows_build_container2
image: 'cdpxb7b51c2f738e43e48f7605d9a8e5f6d700.azurecr.io/b7b51c2f-738e-43e4-8f76-05d9a8e5f6d7/official/msquicbuild:${{ parameters.WindowsContainerImage2DockerTag }}'
type: Windows
- container: linux_build_container # Default container
image: 'ghcr.io/microsoft/msquic/linux-build-xcomp:ubuntu-20.04-cross'
type: Linux
- container: kernel5_15_cross
image: 'ghcr.io/microsoft/msquic/linux-build-xcomp:ubuntu-22.04-cross'
type: Linux
- container: kernel6_8_cross
image: 'ghcr.io/microsoft/msquic/linux-build-xcomp:ubuntu-24.04-cross'
type: Linux
stages:
- stage: build_winkernel
displayName: Build Windows Kernel
dependsOn: []
jobs:
- template: .azure/obtemplates/build-winkernel.yml@self
parameters:
config: Release
- template: .azure/obtemplates/build-winkernel.yml@self
parameters:
config: Debug
- stage: build_windows
displayName: Build Windows
dependsOn: []
jobs:
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Release
tls: schannel
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Debug
tls: schannel
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Release
tls: openssl
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Debug
tls: openssl
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Release
tls: openssl3
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Debug
tls: openssl3
- stage: build_gamecore_console
displayName: Build Gamecore
dependsOn: []
jobs:
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Release
tls: schannel
platform: gamecore_console
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Debug
tls: schannel
platform: gamecore_console
- stage: build_uwp
displayName: Build Windows UWP
dependsOn: []
jobs:
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Release
tls: schannel
platform: uwp
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Debug
tls: schannel
platform: uwp
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Release
tls: openssl
platform: uwp
- template: .azure/obtemplates/build-winuser.yml@self
parameters:
config: Debug
tls: openssl
platform: uwp
- stage: build_linux
displayName: Build Linux
dependsOn: []
jobs:
- template: .azure/obtemplates/build-linux.yml@self
parameters:
config: Release
- template: .azure/obtemplates/build-linux.yml@self
parameters:
config: Debug
- template: .azure/obtemplates/build-linux.yml@self
parameters:
config: Release
kernel: "kernel5_15"
tls: openssl3
- template: .azure/obtemplates/build-linux.yml@self
parameters:
config: Debug
kernel: "kernel5_15"
tls: openssl3
- template: .azure/obtemplates/build-linux.yml@self
parameters:
config: Release
kernel: "kernel6_8"
tls: openssl3
xdp: "-UseXdp"
- template: .azure/obtemplates/build-linux.yml@self
parameters:
config: Debug
kernel: "kernel6_8"
tls: openssl3
xdp: "-UseXdp"
- stage: package_linux
displayName: Package Linux
dependsOn:
- build_linux
jobs:
- template: .azure/obtemplates/build-linux-packages.yml@self
parameters:
sign: true
kernel: "kernel5_4"
- template: .azure/obtemplates/build-linux-packages.yml@self
parameters:
sign: true
kernel: "kernel5_15"
- template: .azure/obtemplates/build-linux-packages.yml@self
parameters:
sign: true
kernel: "kernel6_8"
- stage: package_windows
displayName: Package Windows
dependsOn:
- build_windows
- build_uwp
jobs:
- template: .azure/obtemplates/build-nuget.yml@self
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/') }}:
parameters:
release: true