This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5k
/
windows.yml
225 lines (193 loc) · 8.62 KB
/
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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
# Windows legs
parameters:
# Required: value to specify if the job is comming from an official build to run extra steps and sign binaries
# Default: false
isOfficialBuild: false
# Required: value to specify if the full test matrix should be tested
# Default: false
fullMatrix: false
# Optional: value to scope the tests.
# Default: empty
testScope: ''
stages:
- stage: WindowsStage
displayName: Windows
dependsOn: []
jobs:
- template: corefx-base.yml
parameters:
isOfficialBuild: ${{ parameters.isOfficialBuild }}
isInternalBuild: ${{ parameters.isInternalBuild }}
testScope: ${{ parameters.testScope }}
targetOS: Windows_NT
jobs:
# Legs with Helix testing
- job: WindowsTest
displayName: Build
strategy:
matrix:
# PR CI Matrix
${{ if eq(parameters.fullMatrix, 'false') }}:
x64_Debug:
_BuildConfig: Debug
_architecture: x64
_framework: netcoreapp
_helixQueues: $(netcoreappWindowsQueues)+$(nanoQueues)
x86_Release:
_BuildConfig: Release
_architecture: x86
_framework: netcoreapp
_helixQueues: $(netcoreappWindowsQueues)
NETFX_x86_Release:
_BuildConfig: Release
_architecture: x86
_framework: netfx
_helixQueues: $(uapNetfxQueues)
UWP_CoreCLR_x64_Debug:
_BuildConfig: Debug
_architecture: x64
_framework: uap
_helixQueues: $(uapNetfxQueues)
# Full test matrix
${{ if eq(parameters.fullMatrix, 'true') }}:
x64_Release:
_BuildConfig: Release
_architecture: x64
_framework: netcoreapp
_helixQueues: $(netcoreappWindowsQueues)+$(nanoQueues)
_publishTests: true
x86_Release:
_BuildConfig: Release
_architecture: x86
_framework: netcoreapp
_helixQueues: $(netcoreappWindowsQueues)
_publishTests: true
NETFX_x86_Release:
_BuildConfig: Release
_architecture: x86
_framework: netfx
_helixQueues: $(uapNetfxQueues)
_skipPublishPackages: true # In NETFX leg we don't produce packages
NETFX_x64_Release:
_BuildConfig: Release
_architecture: x64
_framework: netfx
_helixQueues: $(uapNetfxQueues)
_skipPublishPackages: true # In NETFX leg we don't produce packages
UAP_x64_Release:
_BuildConfig: Release
_architecture: x64
_framework: uap
_helixQueues: $(uapNetfxQueues)
_skipPublishPackages: true # In UWP we don't produce packages
UAP_x86_Release:
_BuildConfig: Release
_architecture: x86
_framework: uap
_helixQueues: $(uapNetfxQueues)
_skipPublishPackages: true # In UWP we don't produce packages
arm64_Release:
_BuildConfig: Release
_architecture: arm64
_framework: netcoreapp
_helixQueues: $(windowsArmQueue)
_publishTests: true
pool:
${{ if ne(variables['System.TeamProject'], 'public') }}:
name: NetCore1ESPool-Svc-Internal
demands: ImageOverride -equals windows.vs2017.amd64
${{ if eq(variables['System.TeamProject'], 'public') }}:
name: NetCore-Svc-Public
demands: ImageOverride -equals windows.vs2017.amd64.Open
submitToHelix: true
# Temporarily until we increase the Windows ARM64 queue, https://github.com/dotnet/core-eng/issues/7756
timeoutInMinutes: 180
buildExtraArguments: /p:RuntimeOS=win10
variables:
- ${{ if eq(parameters.isInternalBuild, 'false') }}:
- nanoQueues: "`(Windows.Nano.1809.Amd64.Open`)windows.10.amd64.serverrs5.open@mcr.microsoft.com/dotnet-buildtools/prereqs:nanoserver-1809-helix-amd64-08e8e40-20200107182504"
- uapNetfxQueues: Windows.10.Amd64.ClientRS5.Open
- windowsArmQueue: Windows.10.Arm64.Open
- ${{ if eq(parameters.fullMatrix, 'false') }}:
- netcoreappWindowsQueues: Windows.7.Amd64.Open+Windows.81.Amd64.Open+Windows.10.Amd64.Client21H1.Open
- ${{ if eq(parameters.fullMatrix, 'true') }}:
- netcoreappWindowsQueues: Windows.7.Amd64.Open+Windows.81.Amd64.Open+Windows.10.Amd64.ServerRS5.Open+Windows.10.Amd64.Client21H1.Open
- ${{ else }}:
- nanoQueues: "`(Windows.Nano.1809.Amd64`)windows.10.amd64.serverrs5@mcr.microsoft.com/dotnet-buildtools/prereqs:nanoserver-1809-helix-amd64-08e8e40-20200107182504"
- uapNetfxQueues: Windows.10.Amd64.ClientRS5
- windowsArmQueue: Windows.10.Arm64
- ${{ if eq(parameters.fullMatrix, 'false') }}:
- netcoreappWindowsQueues: Windows.7.Amd64+Windows.81.Amd64+Windows.10.Amd64.Client21H1
- ${{ if eq(parameters.fullMatrix, 'true') }}:
- netcoreappWindowsQueues: Windows.7.Amd64+Windows.81.Amd64+Windows.10.Amd64.ServerRS5+Windows.10.Amd64.Client21H1
# There is no point of running legs without outerloop tests, when in an outerloop build.
- ${{ if and(ne(parameters.testScope, 'outerloop'), ne(parameters.testScope, 'all')) }}:
# Packaging all configurations
- job: AllConfigurations
displayName: Packaging All Configurations
strategy:
matrix:
${{ if eq(parameters.fullMatrix, 'false') }}:
x64_Debug:
_BuildConfig: Debug
_architecture: x64
_framework: allConfigurations
_helixQueues: $(allConfigurationsQueues)
${{ if eq(parameters.fullMatrix, 'true') }}:
x64_Release:
_BuildConfig: Release
_architecture: x64
_framework: allConfigurations
_helixQueues: $(allConfigurationsQueues)
pool:
${{ if ne(variables['System.TeamProject'], 'public') }}:
name: NetCore1ESPool-Svc-Internal
demands: ImageOverride -equals windows.vs2017.amd64
${{ if eq(variables['System.TeamProject'], 'public') }}:
name: NetCore-Svc-Public
demands: ImageOverride -equals windows.vs2017.amd64.Open
submitToHelix: true
buildExtraArguments: /p:RuntimeOS=win10
variables:
- ${{ if eq(parameters.isInternalBuild, 'false') }}:
- allConfigurationsQueues: Windows.10.Amd64.ClientRS5.Open
- ${{ else }}:
- allConfigurationsQueues: Windows.10.Amd64.ClientRS5
frameworkArg: -allConfigurations
customBuildSteps:
- script: build.cmd
-build
-configuration $(_BuildConfig)
-ci
-buildtests
-allconfigurations
-arch $(_architecture)
/p:RuntimeOS=win10
/p:ArchiveTests=Packages
$(_msbuildCommonParameters)
$(_InternalRuntimeDownloadArgs)
displayName: Build Packages and Tests
# Legs without HELIX testing
- ${{ if eq(parameters.fullMatrix, 'true') }}:
- job: WindowsNoTest
displayName: Build
strategy:
matrix:
arm_Release:
_BuildConfig: Release
_architecture: arm
_framework: netcoreapp
UAP_arm_Release:
_BuildConfig: Release
_architecture: arm
_framework: uap
_skipPublishPackages: true # In UWP we don't produce packages
pool:
${{ if ne(variables['System.TeamProject'], 'public') }}:
name: NetCore1ESPool-Svc-Internal
demands: ImageOverride -equals windows.vs2017.amd64
${{ if eq(variables['System.TeamProject'], 'public') }}:
name: NetCore-Svc-Public
demands: ImageOverride -equals windows.vs2017.amd64.Open
submitToHelix: false
buildExtraArguments: /p:RuntimeOS=win10