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 4.9k
/
Copy pathwindows.yml
162 lines (138 loc) · 5.53 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
# 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 }}
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: $(netFxQueues)
# 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: $(netFxQueues)
_skipPublishPackages: true # In NETFX leg we don't produce packages
NETFX_x64_Release:
_BuildConfig: Release
_architecture: x64
_framework: netfx
_helixQueues: $(netFxQueues)
_skipPublishPackages: true # In NETFX leg we don't produce packages
pool:
name: Hosted VS2017
submitToHelix: true
buildExtraArguments: /p:RuntimeOS=win10
variables:
- nanoQueues: "`(Windows.Nano.1809.Amd64.Open`)windows.10.amd64.serverrs5.open@mcr.microsoft.com/dotnet-buildtools/prereqs:nanoserver-1809-helix-amd64-61052b7-20190723211353"
- netFxQueues: Windows.10.Amd64.Client19H1.Open
- ${{ if eq(parameters.fullMatrix, 'false') }}:
- netcoreappWindowsQueues: Windows.7.Amd64.Open+Windows.81.Amd64.Open+Windows.10.Amd64.Client19H1.ES.Open
- ${{ if eq(parameters.fullMatrix, 'true') }}:
- netcoreappWindowsQueues: Windows.7.Amd64.Open+Windows.81.Amd64.Open+Windows.10.Amd64.ServerRS5.Open+Windows.10.Amd64.Client19H1.Open
# 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:
name: Hosted VS2017
submitToHelix: true
buildExtraArguments: /p:RuntimeOS=win10
variables:
- allConfigurationsQueues: Windows.10.Amd64.ClientRS5.Open
frameworkArg: -allConfigurations
customBuildSteps:
- script: $(buildScriptFileName).cmd
-build
-configuration $(_BuildConfig)
-ci
-buildtests
-allconfigurations
-arch $(_architecture)
/p:RuntimeOS=win10
/p:ArchiveTests=Packages
$(_msbuildCommonParameters)
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
arm64_Release:
_BuildConfig: Release
_architecture: arm64
_framework: netcoreapp
_publishTests: true
pool:
name: Hosted VS2017
submitToHelix: false
buildExtraArguments: /p:RuntimeOS=win10