Skip to content

Commit ca120ed

Browse files
author
Adit Sheth
committed
Merge branch 'main' of https://github.com/shethaadit/aspnetcore into shethaadit/FixBug54953
2 parents 515bdd2 + ad2b386 commit ca120ed

File tree

108 files changed

+2661
-7944
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+2661
-7944
lines changed

.azure/pipelines/ci-public.yml

Lines changed: 2 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,6 @@ variables:
7979
value: true
8080
- template: /eng/common/templates/variables/pool-providers.yml
8181

82-
resources:
83-
containers:
84-
- container: debpkg
85-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-debpkg
86-
87-
- container: rpmpkg
88-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-fpm
89-
9082
stages:
9183
- stage: build
9284
displayName: Build
@@ -313,43 +305,13 @@ stages:
313305
--ci
314306
--arch x64
315307
--pack
308+
--build-installers
316309
--all
317310
--no-build-java
318311
-p:OnlyPackPlatformSpecificPackages=true
319312
$(_BuildArgs)
320313
$(_InternalRuntimeDownloadArgs)
321314
displayName: Run build.sh
322-
- script: ./eng/build.sh
323-
--ci
324-
--nobl
325-
--arch x64
326-
--build-installers
327-
--no-build-deps
328-
--no-build-nodejs
329-
-p:OnlyPackPlatformSpecificPackages=true
330-
-p:BuildRuntimeArchive=false
331-
-p:LinuxInstallerType=deb
332-
$(_BuildArgs)
333-
$(_InternalRuntimeDownloadArgs)
334-
displayName: Build Debian installers
335-
target: debpkg
336-
- script: ./eng/build.sh
337-
--ci
338-
--nobl
339-
--arch x64
340-
--build-installers
341-
--no-build-deps
342-
--no-build-nodejs
343-
--publish
344-
-p:OnlyPackPlatformSpecificPackages=true
345-
-p:BuildRuntimeArchive=false
346-
-p:LinuxInstallerType=rpm
347-
-p:AssetManifestFileName=aspnetcore-Linux_x64.xml
348-
$(_BuildArgs)
349-
$(_PublishArgs)
350-
$(_InternalRuntimeDownloadArgs)
351-
displayName: Build RPM installers
352-
target: rpmpkg
353315
artifacts:
354316
- name: Linux_x64_Logs_Attempt_$(System.JobAttempt)
355317
path: artifacts/log/
@@ -404,29 +366,13 @@ stages:
404366
--ci
405367
--arch arm64
406368
--pack
369+
--build-installers
407370
--all
408371
--no-build-java
409372
-p:OnlyPackPlatformSpecificPackages=true
410373
$(_BuildArgs)
411374
$(_InternalRuntimeDownloadArgs)
412375
displayName: Run build.sh
413-
- script: ./eng/build.sh
414-
--ci
415-
--nobl
416-
--arch arm64
417-
--build-installers
418-
--no-build-deps
419-
--no-build-nodejs
420-
--publish
421-
-p:OnlyPackPlatformSpecificPackages=true
422-
-p:BuildRuntimeArchive=false
423-
-p:LinuxInstallerType=rpm
424-
-p:AssetManifestFileName=aspnetcore-Linux_arm64.xml
425-
$(_BuildArgs)
426-
$(_PublishArgs)
427-
$(_InternalRuntimeDownloadArgs)
428-
displayName: Build RPM installers
429-
target: rpmpkg
430376
artifacts:
431377
- name: Linux_arm64_Logs_Attempt_$(System.JobAttempt)
432378
path: artifacts/log/

.azure/pipelines/ci.yml

Lines changed: 46 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ parameters:
2727
default: false
2828
displayName: Skip tests?
2929
type: boolean
30-
# Choose whether to enable binlogs when running pipeline manually.
31-
# Binary logs are enabled by default in public builds and aren't designed to be disabled there.
32-
- name: produceBinlogs
33-
default: false
34-
displayName: Produce binlogs?
35-
type: boolean
3630

3731
variables:
3832
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
@@ -44,9 +38,13 @@ variables:
4438
- ${{ if or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), eq(variables['Build.Reason'], 'Manual')) }}:
4539
- name: PostBuildSign
4640
value: false
41+
- name: _ArcadePublishNonWindowsArg
42+
value: ''
4743
- ${{ else }}:
4844
- name: PostBuildSign
4945
value: true
46+
- name: _ArcadePublishNonWindowsArg
47+
value: --publish
5048
- name: _UseHelixOpenQueues
5149
value: ${{ ne(variables['System.TeamProject'], 'internal') }}
5250
- ${{ if and(notin(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/main')) }}:
@@ -63,39 +61,23 @@ variables:
6361
# The following extra properties are not set when testing. Use with final build.[cmd,sh] of asset-producing jobs.
6462
- name: _PublishArgs
6563
value: /p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
66-
- ${{ if ne(parameters.produceBinlogs, 'true') }}:
67-
# Do not log most Windows steps in official builds; this is the slowest job. Site extensions step always logs.
68-
- name: WindowsArm64LogArgs
69-
value: -ExcludeCIBinaryLog
70-
- name: Windows64LogArgs
71-
value: -ExcludeCIBinaryLog
72-
- name: Windows86LogArgs
73-
value: -ExcludeCIBinaryLog
74-
- name: WindowsSignLogArgs
75-
value: -ExcludeCIBinaryLog
76-
- name: WindowsInstallersLogArgs
77-
value: -ExcludeCIBinaryLog
78-
- name: WindowsArm64InstallersLogArgs
79-
value: -ExcludeCIBinaryLog
8064
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
8165
- name: _BuildArgs
8266
value: '/p:SkipTestBuild=true /p:PostBuildSign=$(PostBuildSign)'
8367
- name: _PublishArgs
8468
value: ''
85-
- ${{ if or(in(variables['Build.Reason'], 'PullRequest'), eq(parameters.produceBinlogs, 'true')) }}:
86-
# Write binary logs for all main Windows build steps except the x86 one in public and PR builds.
87-
- name: WindowsArm64LogArgs
88-
value: /bl:artifacts/log/Release/Build.arm64.binlog
89-
- name: Windows64LogArgs
90-
value: /bl:artifacts/log/Release/Build.x64.binlog
91-
- name: Windows86LogArgs
92-
value: -ExcludeCIBinaryLog
93-
- name: WindowsSignLogArgs
94-
value: /bl:artifacts/log/Release/Build.CodeSign.binlog
95-
- name: WindowsInstallersLogArgs
96-
value: /bl:artifacts/log/Release/Build.Installers.binlog
97-
- name: WindowsArm64InstallersLogArgs
98-
value: /bl:artifacts/log/Release/Build.Installers.Arm64.binlog
69+
- name: WindowsArm64LogArgs
70+
value: /bl:artifacts/log/Release/Build.arm64.binlog
71+
- name: Windows64LogArgs
72+
value: /bl:artifacts/log/Release/Build.x64.binlog
73+
- name: Windows86LogArgs
74+
value: -ExcludeCIBinaryLog
75+
- name: WindowsSignLogArgs
76+
value: /bl:artifacts/log/Release/Build.CodeSign.binlog
77+
- name: WindowsInstallersLogArgs
78+
value: /bl:artifacts/log/Release/Build.Installers.binlog
79+
- name: WindowsArm64InstallersLogArgs
80+
value: /bl:artifacts/log/Release/Build.Installers.Arm64.binlog
9981
- name: _InternalRuntimeDownloadArgs
10082
value: -RuntimeSourceFeed https://dotnetbuilds.blob.core.windows.net/internal
10183
-RuntimeSourceFeedKey $(dotnetbuilds-internal-container-read-token-base64)
@@ -121,12 +103,6 @@ variables:
121103
- template: /eng/common/templates-official/variables/pool-providers.yml@self
122104

123105
resources:
124-
containers:
125-
- container: debpkg
126-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-debpkg
127-
128-
- container: rpmpkg
129-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-fpm
130106
repositories:
131107
# Repo: 1ESPipelineTemplates/1ESPipelineTemplates
132108
- repository: 1esPipelines
@@ -321,7 +297,7 @@ extends:
321297
--pack
322298
--all
323299
--no-build-java
324-
--publish
300+
$(_ArcadePublishNonWindowsArg)
325301
-p:OnlyPackPlatformSpecificPackages=true
326302
-p:AssetManifestFileName=aspnetcore-MacOS_arm64.xml
327303
$(_BuildArgs)
@@ -351,7 +327,7 @@ extends:
351327
--pack
352328
--all
353329
--no-build-java
354-
--publish
330+
$(_ArcadePublishNonWindowsArg)
355331
-p:OnlyPackPlatformSpecificPackages=true
356332
-p:AssetManifestFileName=aspnetcore-MacOS_x64.xml
357333
$(_BuildArgs)
@@ -377,48 +353,18 @@ extends:
377353
jobDisplayName: "Build: Linux x64"
378354
agentOs: Linux
379355
useHostedUbuntu: false
380-
steps:
381-
- script: ./eng/build.sh
382-
--ci
383-
--arch x64
384-
--pack
385-
--all
386-
--no-build-java
387-
-p:OnlyPackPlatformSpecificPackages=true
388-
$(_BuildArgs)
389-
$(_InternalRuntimeDownloadArgs)
390-
displayName: Run build.sh
391-
- script: ./eng/build.sh
392-
--ci
393-
--nobl
394-
--arch x64
395-
--build-installers
396-
--no-build-deps
397-
--no-build-nodejs
398-
-p:OnlyPackPlatformSpecificPackages=true
399-
-p:BuildRuntimeArchive=false
400-
-p:LinuxInstallerType=deb
401-
$(_BuildArgs)
402-
$(_InternalRuntimeDownloadArgs)
403-
displayName: Build Debian installers
404-
target: debpkg
405-
- script: ./eng/build.sh
406-
--ci
407-
--nobl
408-
--arch x64
409-
--build-installers
410-
--no-build-deps
411-
--no-build-nodejs
412-
--publish
413-
-p:OnlyPackPlatformSpecificPackages=true
414-
-p:BuildRuntimeArchive=false
415-
-p:LinuxInstallerType=rpm
416-
-p:AssetManifestFileName=aspnetcore-Linux_x64.xml
417-
$(_BuildArgs)
418-
$(_PublishArgs)
419-
$(_InternalRuntimeDownloadArgs)
420-
displayName: Build RPM installers
421-
target: rpmpkg
356+
buildArgs:
357+
--arch x64
358+
--pack
359+
--all
360+
--build-installers
361+
--no-build-java
362+
$(_ArcadePublishNonWindowsArg)
363+
-p:OnlyPackPlatformSpecificPackages=true
364+
-p:AssetManifestFileName=aspnetcore-Linux_x64.xml
365+
$(_BuildArgs)
366+
$(_PublishArgs)
367+
$(_InternalRuntimeDownloadArgs)
422368
artifacts:
423369
- name: Linux_x64_Logs_Attempt_$(System.JobAttempt)
424370
path: artifacts/log/
@@ -443,7 +389,7 @@ extends:
443389
--pack
444390
--all
445391
--no-build-java
446-
--publish
392+
$(_ArcadePublishNonWindowsArg)
447393
-p:OnlyPackPlatformSpecificPackages=true
448394
-p:AssetManifestFileName=aspnetcore-Linux_arm.xml
449395
$(_BuildArgs)
@@ -468,34 +414,18 @@ extends:
468414
jobName: Linux_arm64_build
469415
jobDisplayName: "Build: Linux ARM64"
470416
agentOs: Linux
471-
steps:
472-
- script: ./eng/build.sh
473-
--ci
474-
--arch arm64
475-
--pack
476-
--all
477-
--no-build-java
478-
-p:OnlyPackPlatformSpecificPackages=true
479-
$(_BuildArgs)
480-
$(_InternalRuntimeDownloadArgs)
481-
displayName: Run build.sh
482-
- script: ./eng/build.sh
483-
--ci
484-
--nobl
485-
--arch arm64
486-
--build-installers
487-
--no-build-deps
488-
--no-build-nodejs
489-
--publish
490-
-p:OnlyPackPlatformSpecificPackages=true
491-
-p:BuildRuntimeArchive=false
492-
-p:LinuxInstallerType=rpm
493-
-p:AssetManifestFileName=aspnetcore-Linux_arm64.xml
494-
$(_BuildArgs)
495-
$(_PublishArgs)
496-
$(_InternalRuntimeDownloadArgs)
497-
displayName: Build RPM installers
498-
target: rpmpkg
417+
buildArgs:
418+
--arch arm64
419+
--pack
420+
--all
421+
--build-installers
422+
--no-build-java
423+
$(_ArcadePublishNonWindowsArg)
424+
-p:OnlyPackPlatformSpecificPackages=true
425+
-p:AssetManifestFileName=aspnetcore-Linux_arm64.xml
426+
$(_BuildArgs)
427+
$(_PublishArgs)
428+
$(_InternalRuntimeDownloadArgs)
499429
artifacts:
500430
- name: Linux_arm64_Logs_Attempt_$(System.JobAttempt)
501431
path: artifacts/log/
@@ -522,7 +452,7 @@ extends:
522452
--pack
523453
--all
524454
--no-build-java
525-
--publish
455+
$(_ArcadePublishNonWindowsArg)
526456
-p:OnlyPackPlatformSpecificPackages=true
527457
-p:AssetManifestFileName=aspnetcore-Linux_musl_x64.xml
528458
$(_BuildArgs)
@@ -556,7 +486,7 @@ extends:
556486
--pack
557487
--all
558488
--no-build-java
559-
--publish
489+
$(_ArcadePublishNonWindowsArg)
560490
-p:OnlyPackPlatformSpecificPackages=true
561491
-p:AssetManifestFileName=aspnetcore-Linux_musl_arm.xml
562492
$(_BuildArgs)
@@ -589,7 +519,7 @@ extends:
589519
--pack
590520
--all
591521
--no-build-java
592-
--publish
522+
$(_ArcadePublishNonWindowsArg)
593523
-p:OnlyPackPlatformSpecificPackages=true
594524
-p:AssetManifestFileName=aspnetcore-Linux_musl_arm64.xml
595525
$(_BuildArgs)

.azure/pipelines/jobs/codesign-xplat.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,20 @@ jobs:
1919
inputs:
2020
artifactName: ${{ parameters.inputName }}_Packages
2121
downloadPath: $(Build.StagingDirectory)/downloaded_packages/
22-
itemPattern: '**/*.nupkg'
22+
itemPattern: |
23+
**/*.nupkg
24+
**/*.tar.gz
25+
**/*.deb
26+
**/*.rpm
2327
- task: CopyFiles@2
2428
displayName: Copy packages to ArtifactsShippingPackagesDir
2529
inputs:
2630
sourceFolder: $(Build.StagingDirectory)/downloaded_packages/
27-
contents: '**/*.nupkg'
31+
contents: |
32+
**/*.nupkg
33+
**/*.tar.gz
34+
**/*.deb
35+
**/*.rpm
2836
targetFolder: $(Build.SourcesDirectory)/artifacts/packages/$(BuildConfiguration)/shipping/
2937
flattenFolders: true
3038
- powershell: .\eng\common\build.ps1

0 commit comments

Comments
 (0)