-
Notifications
You must be signed in to change notification settings - Fork 256
/
azure-pipelines-internal.yml
140 lines (123 loc) · 4.09 KB
/
azure-pipelines-internal.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
trigger:
- main
variables:
- name: Codeql.Enabled
value: true
- name: TeamName
value: DotNetCore
- name: _SignType
value: real
- group: DotNet-Symbol-Server-Pats
- group: Publish-Build-Assets
resources:
repositories:
- repository: CustomPipelineTemplates
type: git
name: 1ESPipelineTemplates/MicroBuildTemplate
ref: refs/tags/release
extends:
template: azure-pipelines/MicroBuild.1ES.Official.yml@CustomPipelineTemplates
parameters:
featureFlags:
autoBaseline: false
sdl:
sourceAnalysisPool:
name: NetCore1ESPool-Internal
image: windows.vs2022.amd64
os: windows
stages:
- stage: build
displayName: Build and Test
# Three jobs for each of the three OSes we want to run on
jobs:
- template: /eng/common/templates-official/jobs/jobs.yml@self
parameters:
enableMicrobuild: true
enableTelemetry: true
enablePublishBuildArtifacts: true
helixRepo: Microsoft/clrmd
jobs:
- job: Windows_NT
pool:
name: NetCore1ESPool-Internal
demands: ImageOverride -equals windows.vs2022.amd64
os: windows
variables:
- DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX: 2
- _ReleaseBuildArgs: ''
strategy:
matrix:
build_debug:
_BuildConfig: Debug
_ReleaseBuildArgs: ''
build_release:
_BuildConfig: Release
_ReleaseBuildArgs: /p:DotNetSignType=$(_SignType)
/p:TeamName=$(TeamName)
/p:DotNetPublishUsingPipelines=true
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
steps:
- script: eng\common\cibuild.cmd
-configuration $(_BuildConfig)
-prepareMachine
-verbosity normal
$(_ReleaseBuildArgs)
name: Build
displayName: Build
condition: succeeded()
- job: Linux
pool:
name: NetCore1ESPool-Internal
demands: ImageOverride -equals 1es-ubuntu-2204
os: linux
strategy:
matrix:
debug:
_BuildConfig: Debug
release:
_BuildConfig: Release
steps:
- script: eng/common/cibuild.sh
--configuration $(_BuildConfig)
--prepareMachine
name: Build
displayName: Build
condition: succeeded()
- job: MacOS
pool:
name: Azure Pipelines
image: macOS-latest
os: macOS
strategy:
matrix:
debug:
_BuildConfig: Debug
release:
_BuildConfig: Release
steps:
- script: eng/common/cibuild.sh
--configuration $(_BuildConfig)
--prepareMachine
name: Build
displayName: Build
condition: succeeded()
- template: /eng/common/templates-official/job/publish-build-assets.yml@self
parameters:
configuration: Release
dependsOn: Windows_NT
publishUsingPipelines: true
pool:
name: NetCore1ESPool-Internal
demands: ImageOverride -equals windows.vs2022.amd64
os: windows
- template: /eng/common/templates-official/post-build/post-build.yml@self
parameters:
# This is to enable SDL runs part of Post-Build Validation Stage.
# as well as NuGet, SourceLink, and signing validation.
# The variables get imported from group dotnet-diagnostics-sdl-params
publishingInfraVersion: 3
enableSourceLinkValidation: false
enableSigningValidation: true
enableSymbolValidation: false
enableNugetValidation: true
publishInstallersAndChecksums: true