-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
190 lines (176 loc) · 5.1 KB
/
azure-pipelines.yml
File metadata and controls
190 lines (176 loc) · 5.1 KB
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
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# Build STL targeting x64, x86, arm64, arm64ec
variables:
- template: azure-devops/config.yml
pr:
drafts: false
stages:
- stage: Code_Format
dependsOn: []
displayName: 'Code Format'
pool:
name: ${{ variables.x64SlowPoolName }}
demands: ${{ variables.poolDemands }}
jobs:
- template: azure-devops/format-validation.yml
- stage: Build_x64
dependsOn: []
displayName: 'Build x64'
pool:
name: ${{ variables.x64SlowPoolName }}
demands: ${{ variables.poolDemands }}
jobs:
- template: azure-devops/build-and-test.yml
parameters:
hostArch: x64
targetArch: x64
targetPlatform: x64
analyzeBuild: true
buildBenchmarks: true
numShards: 1
configureTesting: false
runTesting: false
- stage: Build_x86
dependsOn: []
displayName: 'Build x86'
pool:
name: ${{ variables.x64SlowPoolName }}
demands: ${{ variables.poolDemands }}
jobs:
- template: azure-devops/build-and-test.yml
parameters:
hostArch: x86
targetArch: x86
targetPlatform: x86
analyzeBuild: true
buildBenchmarks: true
numShards: 1
configureTesting: false
runTesting: false
- stage: Build_ARM64_Cross
dependsOn: []
displayName: 'Build ARM64 (Cross)'
pool:
name: ${{ variables.x64SlowPoolName }}
demands: ${{ variables.poolDemands }}
jobs:
- template: azure-devops/build-and-test.yml
parameters:
hostArch: x64
targetArch: arm64
targetPlatform: arm64
analyzeBuild: true
buildBenchmarks: true
numShards: 1
configureTesting: false
runTesting: false
- stage: Build_ARM64EC_Cross
dependsOn: []
displayName: 'Build ARM64EC (Cross)'
pool:
name: ${{ variables.x64SlowPoolName }}
demands: ${{ variables.poolDemands }}
jobs:
- template: azure-devops/build-and-test.yml
parameters:
hostArch: x64
targetArch: arm64
targetPlatform: arm64ec
analyzeBuild: true
buildBenchmarks: true
numShards: 1
configureTesting: false
runTesting: false
# This ARM64-native build will detect problems with the ARM64 pool as early as possible.
# The stage dependencies are structured to optimize the critical path.
- stage: Build_ARM64_Native
dependsOn: []
displayName: 'Build ARM64 (Native)'
pool:
name: ${{ variables.arm64PoolName }}
demands: ${{ variables.poolDemands }}
jobs:
- template: azure-devops/build-and-test.yml
parameters:
hostArch: arm64
targetArch: arm64
targetPlatform: arm64
analyzeBuild: true
buildBenchmarks: true
numShards: 1
configureTesting: false
runTesting: false
- stage: Configure_Tests
dependsOn: []
displayName: 'Configure Tests'
pool:
name: ${{ variables.x64SlowPoolName }}
demands: ${{ variables.poolDemands }}
jobs:
- template: azure-devops/build-and-test.yml
parameters:
hostArch: x64
targetArch: x64
targetPlatform: x64
numShards: 1
buildStl: false
runTesting: false
- stage: Test_x64
dependsOn:
- Code_Format
- Build_x64
- Build_x86
- Build_ARM64_Cross
- Build_ARM64EC_Cross
- Configure_Tests
displayName: 'Test x64'
pool:
name: ${{ variables.x64FastPoolName }}
demands: ${{ variables.poolDemands }}
jobs:
- template: azure-devops/build-and-test.yml
parameters:
hostArch: x64
targetArch: x64
targetPlatform: x64
- stage: Test_x86
dependsOn: Test_x64
displayName: 'Test x86'
pool:
name: ${{ variables.x64SlowPoolName }}
demands: ${{ variables.poolDemands }}
jobs:
- template: azure-devops/build-and-test.yml
parameters:
hostArch: x86
targetArch: x86
targetPlatform: x86
- stage: Test_ARM64
dependsOn:
- Build_ARM64_Native
- Test_x64
displayName: 'Test ARM64'
pool:
name: ${{ variables.arm64PoolName }}
demands: ${{ variables.poolDemands }}
jobs:
- template: azure-devops/build-and-test.yml
parameters:
hostArch: arm64
targetArch: arm64
targetPlatform: arm64
- stage: Test_ARM64EC
dependsOn:
- Build_ARM64_Native
- Test_x64
displayName: 'Test ARM64EC'
pool:
name: ${{ variables.arm64PoolName }}
demands: ${{ variables.poolDemands }}
jobs:
- template: azure-devops/build-and-test.yml
parameters:
hostArch: arm64
targetArch: arm64
targetPlatform: arm64ec