Skip to content

Commit 0ca3106

Browse files
authored
Merge pull request #1506 from microsoft/dev/andarno/libtemplateUpdate
Merge latest Library.Template
2 parents ef894ef + 2bba985 commit 0ca3106

File tree

5 files changed

+39
-32
lines changed

5 files changed

+39
-32
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"powershell": {
6-
"version": "7.5.3",
6+
"version": "7.5.4",
77
"commands": [
88
"pwsh"
99
],

azure-pipelines/build.yml

Lines changed: 37 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,17 @@ parameters:
2929
- name: artifact_names
3030
type: object
3131
default:
32-
- build_logs
33-
- coverageResults
34-
- deployables
35-
- projectAssetsJson
36-
- symbols
37-
- testResults
38-
- test_symbols
39-
- Variables
32+
- name: build_logs
33+
- name: coverageResults
34+
- name: deployables
35+
sbomEnabled: true
36+
- name: projectAssetsJson
37+
- name: symbols
38+
- name: testResults
39+
testOnly: true
40+
- name: test_symbols
41+
testOnly: true
42+
- name: Variables
4043
# The Enable*Build parameters turn non-Windows agents on or off.
4144
# Their default value should be based on whether the build and tests are expected/required to pass on that platform.
4245
# Callers (e.g. Official.yml) *may* expose these parameters at queue-time in order to turn OFF optional agents.
@@ -57,6 +60,11 @@ parameters:
5760
- name: Is1ESPT
5861
type: boolean
5962

63+
# Indicates whether the 'official' 1ES PT templates are being used (as opposed to the unofficial ones).
64+
- name: Is1ESPTOfficial
65+
type: boolean
66+
default: false
67+
6068
- name: RealSign
6169
type: boolean
6270
default: false
@@ -150,12 +158,14 @@ jobs:
150158

151159
outputParentDirectory: $(Build.ArtifactStagingDirectory)
152160
outputs:
153-
- ${{ each artifact_name in parameters.artifact_names }}:
154-
- ${{ if or(ne(artifact_name, 'testResults'), parameters.RunTests) }}:
161+
- ${{ each artifact in parameters.artifact_names }}:
162+
- ${{ if or(ne(artifact.testOnly, 'true'), parameters.RunTests) }}:
155163
- output: pipelineArtifact
156-
displayName: 📢 Publish ${{ artifact_name }}-Windows
157-
targetPath: $(Build.ArtifactStagingDirectory)/${{ artifact_name }}-Windows
158-
artifactName: ${{ artifact_name }}-Windows
164+
displayName: 📢 Publish ${{ artifact.name }}-Windows
165+
targetPath: $(Build.ArtifactStagingDirectory)/${{ artifact.name }}-Windows
166+
artifactName: ${{ artifact.name }}-Windows
167+
${{ if and(parameters.Is1ESPTOfficial, eq(artifact.sbomEnabled, 'true')) }}:
168+
sbomEnabled: true
159169
condition: succeededOrFailed()
160170
- output: pipelineArtifact
161171
displayName: 📢 Publish VSInsertion-Windows
@@ -193,7 +203,6 @@ jobs:
193203
- template: microbuild.before.yml
194204
parameters:
195205
EnableLocalization: ${{ parameters.EnableLocalization }}
196-
EnableOptProf: ${{ parameters.EnableOptProf }}
197206
IsOptProf: ${{ parameters.IsOptProf }}
198207
ShouldSkipOptimize: ${{ parameters.ShouldSkipOptimize }}
199208
RealSign: ${{ parameters.RealSign }}
@@ -213,7 +222,6 @@ jobs:
213222
- ${{ if eq(variables['system.collectionId'], '011b8bdf-6d56-4f87-be0d-0092136884d9') }}:
214223
- template: microbuild.after.yml
215224
parameters:
216-
EnableOptProf: ${{ parameters.EnableOptProf }}
217225
IsOptProf: ${{ parameters.IsOptProf }}
218226
SkipCodesignVerify: ${{ parameters.SkipCodesignVerify }}
219227

@@ -234,12 +242,14 @@ jobs:
234242
signWithProd: true
235243
outputParentDirectory: $(Build.ArtifactStagingDirectory)
236244
outputs:
237-
- ${{ each artifact_name in parameters.artifact_names }}:
238-
- ${{ if or(ne(artifact_name, 'testResults'), parameters.RunTests) }}:
245+
- ${{ each artifact in parameters.artifact_names }}:
246+
- ${{ if or(ne(artifact.testOnly, 'true'), parameters.RunTests) }}:
239247
- output: pipelineArtifact
240-
displayName: 📢 Publish ${{ artifact_name }}-Linux
241-
targetPath: $(Build.ArtifactStagingDirectory)/${{ artifact_name }}-Linux
242-
artifactName: ${{ artifact_name }}-Linux
248+
displayName: 📢 Publish ${{ artifact.name }}-Linux
249+
targetPath: $(Build.ArtifactStagingDirectory)/${{ artifact.name }}-Linux
250+
artifactName: ${{ artifact.name }}-Linux
251+
${{ if and(parameters.Is1ESPTOfficial, eq(artifact.sbomEnabled, 'true')) }}:
252+
sbomEnabled: true
243253
condition: succeededOrFailed()
244254
steps:
245255
- checkout: self
@@ -273,12 +283,14 @@ jobs:
273283
signWithProd: true
274284
outputParentDirectory: $(Build.ArtifactStagingDirectory)
275285
outputs:
276-
- ${{ each artifact_name in parameters.artifact_names }}:
277-
- ${{ if or(ne(artifact_name, 'testResults'), parameters.RunTests) }}:
286+
- ${{ each artifact in parameters.artifact_names }}:
287+
- ${{ if or(ne(artifact.testOnly, 'true'), parameters.RunTests) }}:
278288
- output: pipelineArtifact
279-
displayName: 📢 Publish ${{ artifact_name }}-macOS
280-
targetPath: $(Build.ArtifactStagingDirectory)/${{ artifact_name }}-macOS
281-
artifactName: ${{ artifact_name }}-macOS
289+
displayName: 📢 Publish ${{ artifact.name }}-macOS
290+
targetPath: $(Build.ArtifactStagingDirectory)/${{ artifact.name }}-macOS
291+
artifactName: ${{ artifact.name }}-macOS
292+
${{ if and(parameters.Is1ESPTOfficial, eq(artifact.sbomEnabled, 'true')) }}:
293+
sbomEnabled: true
282294
condition: succeededOrFailed()
283295
steps:
284296
- checkout: self

azure-pipelines/microbuild.after.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
parameters:
2-
- name: EnableOptProf
3-
type: boolean
4-
default: false
52
- name: IsOptProf
63
type: boolean
74
default: false

azure-pipelines/microbuild.before.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ parameters:
22
- name: EnableLocalization
33
type: boolean
44
default: false
5-
- name: EnableOptProf
6-
type: boolean
7-
default: false
85
- name: IsOptProf
96
type: boolean
107
default: false

azure-pipelines/official.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ extends:
6868
- template: /azure-pipelines/build.yml@self
6969
parameters:
7070
Is1ESPT: true
71+
Is1ESPTOfficial: true
7172
RealSign: true
7273
# ShouldSkipOptimize: ${{ parameters.ShouldSkipOptimize }}
7374
EnableAPIScan: ${{ parameters.EnableAPIScan }}

0 commit comments

Comments
 (0)