Skip to content

Commit 542a875

Browse files
jkoritzinskyeduardo-vp
authored andcommitted
Merge CoreCLR-based official builds legs into one leg per platform (#92901)
1 parent 3b05cdb commit 542a875

File tree

14 files changed

+317
-321
lines changed

14 files changed

+317
-321
lines changed

eng/pipelines/common/global-build-job.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,11 @@ jobs:
237237
- task: CodeQL3000Init@0
238238
displayName: Initialize CodeQL (manually-injected)
239239

240-
- script: $(Build.SourcesDirectory)$(dir)build$(scriptExt) -ci $(_archParameter) $(_osParameter) $(crossArg) ${{ parameters.buildArgs }} $(_officialBuildParameter) $(_buildDarwinFrameworksParameter) $(_overrideTestScriptWindowsCmdParameter)
241-
displayName: Build product
242-
${{ if eq(parameters.useContinueOnErrorDuringBuild, true) }}:
243-
continueOnError: ${{ parameters.shouldContinueOnError }}
240+
- template: /eng/pipelines/common/templates/global-build-step.yml
241+
parameters:
242+
buildArgs: ${{ parameters.buildArgs }}
243+
useContinueOnErrorDuringBuild: ${{ parameters.useContinueOnErrorDuringBuild }}
244+
shouldContinueOnError: ${{ parameters.shouldContinueOnError }}
244245

245246
- ${{ if eq(parameters.isManualCodeQLBuild, true) }}:
246247
- task: CodeQL3000Finalize@0
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
parameters:
2+
buildArgs: ''
3+
useContinueOnErrorDuringBuild: false
4+
shouldContinueOnError: false
5+
archParameter: $(_archParameter)
6+
displayName: Build product
7+
8+
steps:
9+
- script: $(Build.SourcesDirectory)$(dir)build$(scriptExt) -ci ${{ parameters.archParameter }} $(_osParameter) $(crossArg) ${{ parameters.buildArgs }} $(_officialBuildParameter) $(_buildDarwinFrameworksParameter) $(_overrideTestScriptWindowsCmdParameter)
10+
displayName: ${{ parameters.displayName }}
11+
${{ if eq(parameters.useContinueOnErrorDuringBuild, true) }}:
12+
continueOnError: ${{ parameters.shouldContinueOnError }}

eng/pipelines/common/templates/runtimes/xplat-job.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,6 @@ jobs:
7777
- name: buildConfig
7878
value: ${{ parameters.buildConfig }}
7979

80-
- name: archType
81-
value: ${{ parameters.archType }}
82-
83-
- name: osGroup
84-
value: ${{ parameters.osGroup }}
85-
86-
- name: osSubgroup
87-
value: ${{ parameters.osSubgroup }}
88-
8980
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')) }}:
9081
- name: _HelixSource
9182
value: official/dotnet/runtime/$(Build.SourceBranch)

eng/pipelines/common/xplat-setup.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545

4646
- name: _BuildConfig
4747
value: $(buildConfigUpper)
48+
49+
- name: archType
50+
value: ${{ parameters.archType }}
51+
52+
- name: osGroup
53+
value: ${{ parameters.osGroup }}
54+
55+
- name: osSubgroup
56+
value: ${{ parameters.osSubgroup }}
4857

4958
- name: _runSmokeTestsOnlyArg
5059
value: '/p:RunSmokeTestsOnly=$(isRunSmokeTestsOnly)'

eng/pipelines/coreclr/templates/build-job.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -231,27 +231,6 @@ jobs:
231231
artifactName: $(buildProductArtifactName)
232232
displayName: 'product build'
233233

234-
- ${{ if and(in(parameters.osGroup, 'windows', 'linux'), ne(parameters.archType, 'x86')) }}:
235-
- template: /eng/pipelines/coreclr/templates/crossdac-build.yml
236-
parameters:
237-
archType: ${{ parameters.archType }}
238-
osGroup: ${{ parameters.osGroup }}
239-
osSubgroup: ${{ parameters.osSubgroup }}
240-
isOfficialBuild: ${{ parameters.signBinaries }}
241-
${{ if eq(parameters.archType, 'arm') }}:
242-
hostArchType: x86
243-
${{ else }}:
244-
hostArchType: x64
245-
246-
- ${{ if and(in(parameters.osGroup, 'windows'), eq(parameters.archType, 'x86')) }}:
247-
- template: /eng/pipelines/coreclr/templates/crossdac-build.yml
248-
parameters:
249-
archType: arm
250-
osGroup: ${{ parameters.osGroup }}
251-
osSubgroup: ${{ parameters.osSubgroup }}
252-
isOfficialBuild: ${{ parameters.signBinaries }}
253-
hostArchType: x86
254-
255234
- ${{ if and(ne(parameters.testGroup, ''), ne(parameters.disableClrTest, true)) }}:
256235
# Publish test native components for consumption by test execution.
257236
- ${{ if ne(parameters.isOfficialBuild, true) }}:

eng/pipelines/coreclr/templates/crossdac-build.yml

Lines changed: 0 additions & 80 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
parameters:
2+
archType: ''
3+
4+
variables:
5+
- name: crossDacHostArch
6+
value: x64
7+
- ${{ if eq(parameters.archType, 'arm') }}:
8+
- name: crossDacHostArch
9+
value: x86

eng/pipelines/coreclr/templates/crossdac-pack.yml

Lines changed: 0 additions & 75 deletions
This file was deleted.

eng/pipelines/coreclr/templates/xplat-pipeline-job.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ jobs:
6969
- name: buildProductRootFolderPath
7070
value: '$(Build.SourcesDirectory)/artifacts/bin/coreclr/$(osGroup).$(archType).$(buildConfigUpper)'
7171

72-
- name: buildCrossDacArtifactName
73-
value: CoreCLRCrossDacArtifacts
74-
75-
- name: crossDacArtifactPath
76-
value: $(Build.SourcesDirectory)/artifacts/$(buildCrossDacArtifactName)
77-
7872
# We need this because both mono and coreclr build currently depends on CoreClr
7973
- name: coreClrProductArtifactName
8074
value: 'CoreCLRProduct_${{ parameters.runtimeVariant }}_$(osGroup)$(osSubgroup)_$(archType)_$(buildConfig)'

eng/pipelines/installer/jobs/build-job.yml

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -339,32 +339,9 @@ jobs:
339339
df -h
340340
displayName: Disk Usage before Build
341341
342-
# Build the default subset non-MacOS platforms
343-
- ${{ if ne(parameters.osGroup, 'osx') }}:
344-
- script: $(BaseJobBuildCommand)
345-
displayName: Build
346-
continueOnError: ${{ and(eq(variables.SkipTests, false), eq(parameters.shouldContinueOnError, true)) }}
347-
348-
# Build corehost, sign and add entitlements to MacOS binaries
349-
- ${{ if eq(parameters.osGroup, 'osx') }}:
350-
- script: $(BaseJobBuildCommand) -subset host.native
351-
displayName: Build CoreHost
352-
continueOnError: ${{ and(eq(variables.SkipTests, false), eq(parameters.shouldContinueOnError, true)) }}
353-
354-
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
355-
- template: /eng/pipelines/common/macos-sign-with-entitlements.yml
356-
parameters:
357-
filesToSign:
358-
- name: dotnet
359-
path: $(Build.SourcesDirectory)/artifacts/bin/osx-${{ parameters.archType }}.$(_BuildConfig)/corehost
360-
entitlementsFile: $(Build.SourcesDirectory)/eng/pipelines/common/entitlements.plist
361-
- name: apphost
362-
path: $(Build.SourcesDirectory)/artifacts/bin/osx-${{ parameters.archType }}.$(_BuildConfig)/corehost
363-
entitlementsFile: $(Build.SourcesDirectory)/eng/pipelines/common/entitlements.plist
364-
365-
- script: $(BaseJobBuildCommand) -subset host.pkg+host.tools+host.tests+packs
366-
displayName: Build and Package
367-
continueOnError: ${{ and(eq(variables.SkipTests, false), eq(parameters.shouldContinueOnError, true)) }}
342+
- script: $(BaseJobBuildCommand)
343+
displayName: Build
344+
continueOnError: ${{ and(eq(variables.SkipTests, false), eq(parameters.shouldContinueOnError, true)) }}
368345

369346
- ${{ if and(eq(parameters.isOfficialBuild, true), eq(parameters.osGroup, 'windows')) }}:
370347
- powershell: ./eng/collect_vsinfo.ps1 -ArchiveRunName postbuild_log

0 commit comments

Comments
 (0)