-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
180 lines (176 loc) · 5.09 KB
/
azure-pipelines.yml
File metadata and controls
180 lines (176 loc) · 5.09 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
# Azure pipeline
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
batch: 'true'
branches:
include:
- '*'
paths:
include:
- '*'
exclude:
- 'Docs/*'
- 'README.md'
pr:
autoCancel: 'true'
branches:
include:
- '*'
paths:
include:
- '*'
variables:
FullBuild: ${{ or(ne(variables['Build.Reason'], 'PullRequest'), ne(variables['System.PullRequest.IsFork'], 'False')) }}
ScheduledBuild: ${{ in(variables['Build.Reason'], 'Schedule', 'Manual') }}
stages:
- stage: build
displayName: 'Build .NET Core Samples'
jobs:
- template: .azurepipelines/ci.yml
- stage: buildnohttps
dependsOn: []
displayName: 'Build NoHttps .NET Core Samples'
condition: ne(variables.FullBuild, 'False')
jobs:
- template: .azurepipelines/ci.yml
parameters:
buildoption: '-p:NoHttps=true'
agents: '@{ linux = "ubuntu-24.04" }'
- stage: solutions
dependsOn: []
displayName: 'Build Solutions'
jobs:
- template: .azurepipelines/sln.yml
parameters:
poolImage: 'windows-2025-vs2026'
jobnamesuffix: win2025
- stage: testrelease
dependsOn: [build]
displayName: 'Test Core and SDK Release'
condition: and(succeeded(), ne(variables.FullBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
configuration: Release
framework: net48
agents: '@{ windows = "windows-2025-vs2026" }'
jobnamesuffix: net48
- template: .azurepipelines/test.yml
parameters:
configuration: Release
framework: net10.0
agents: '@{ windows = "windows-2025-vs2026"; linux="ubuntu-24.04"; mac = "macOS-15"}'
jobnamesuffix: net100
customtestarget: net10.0
- template: .azurepipelines/test-aot.yml
parameters:
configuration: Release
agents: '@{ windows = "windows-2025-vs2026"; linux="ubuntu-24.04"}'
jobnamesuffix: net100aot
- stage: testreleasepr
dependsOn: []
displayName: 'Fast .NET 10.0 PR Test'
condition: and(eq(variables.FullBuild, 'False'), eq(variables.ScheduledBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
configuration: Release
framework: net10.0
agents: '@{ windows = "windows-2025-vs2026"; linux="ubuntu-22.04"}'
jobnamesuffix: net100pr
- template: .azurepipelines/test-aot.yml
parameters:
configuration: Release
agents: '@{ windows = "windows-2025-vs2026"; linux="ubuntu-22.04"}'
jobnamesuffix: net100praot
- stage: testdebug
dependsOn: [build]
displayName: 'Test .NET 10.0 Debug'
condition: and(succeeded(), ne(variables.ScheduledBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
framework: net10.0
configuration: Debug
jobnamesuffix: net100debug
- stage: testnet80
dependsOn: [build]
displayName: 'Test .NET 8.0'
condition: and(succeeded(), ne(variables.ScheduledBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
framework: net8.0
configuration: Release
jobnamesuffix: net80
- stage: testnet90
dependsOn: [build]
displayName: 'Test .NET 9.0'
condition: and(succeeded(), ne(variables.ScheduledBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
framework: net9.0
configuration: Release
jobnamesuffix: net90
- stage: testnet100
dependsOn: [build]
displayName: 'Test .NET 10.0'
condition: and(succeeded(), ne(variables.ScheduledBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
framework: net10.0
configuration: Release
jobnamesuffix: net100
- template: .azurepipelines/test-aot.yml
parameters:
configuration: Release
jobnamesuffix: net100aot
- stage: testnet472
dependsOn: [build]
displayName: 'Test .NET 4.7.2'
condition: and(succeeded(), ne(variables.ScheduledBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
framework: net472
configuration: Release
jobnamesuffix: net472
agents: '@{ windows = "windows-2025-vs2026" }'
customtestarget: net472
- stage: testnetstandard20
dependsOn: [build]
displayName: 'Test .NETStandard 2.0'
condition: and(succeeded(), ne(variables.ScheduledBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
framework: net48
configuration: Release
jobnamesuffix: netstandard20
agents: '@{ windows = "windows-2025-vs2026"}'
customtestarget: netstandard2.0
- stage: testnetstandard21
dependsOn: [build]
displayName: 'Test .NETStandard 2.1'
condition: and(succeeded(), ne(variables.ScheduledBuild, 'False'))
jobs:
- template: .azurepipelines/test.yml
parameters:
framework: net8.0
configuration: Release
jobnamesuffix: netstandard21
customtestarget: netstandard2.1
- stage: coverage
dependsOn: [testdebug,testrelease]
displayName: 'Code Coverage'
condition: and(succeeded(), ne(variables.ScheduledBuild, 'False'))
jobs:
- template: .azurepipelines/testcc.yml
parameters:
configuration: Release
poolImage: 'ubuntu-22.04'
framework: net10.0
jobnamesuffix: net100cc