@@ -7,32 +7,18 @@ parameters:
77 crossBuild : false
88 framework : ' net9.0'
99 isOfficialBuild : false
10- isOfficialAllConfigurations : false
1110 runtimeVariant : ' '
1211 platform : ' '
13-
14- # When set to a non-empty value (Debug / Release), it determines the runtime's
15- # build configuration to use for building libraries and tests. Setting this
16- # property implies a dependency of this job on the appropriate runtime build
17- # and is used to construct the name of the Azure artifact representing
18- # runtime build to use for building the libraries and library tests.
19- liveRuntimeBuildConfig : ' '
20- runtimeFlavor : ' coreclr'
12+ testScope : ' '
2113
2214 timeoutInMinutes : 150
23- preBuildSteps : []
2415 container : ' '
2516 condition : true
2617 dependOnEvaluatePaths : false
2718 disableComponentGovernance : false
2819 shouldContinueOnError : false
2920 variables : {}
3021 pool : ' '
31- # Run tests as part of the build job (instead of running them in a separate job)
32- runTests : false
33- # Package up the test builds so they can be sent to Helix
34- useHelix : true
35- testScope : ' '
3622
3723jobs :
3824 - template : /eng/pipelines/libraries/base-job.yml
4430 crossBuild : ${{ parameters.crossBuild }}
4531 framework : ${{ parameters.framework }}
4632 isOfficialBuild : ${{ parameters.isOfficialBuild }}
47- isOfficialAllConfigurations : ${{ parameters.isOfficialAllConfigurations }}
48- liveRuntimeBuildConfig : ${{ parameters.liveRuntimeBuildConfig }}
4933 runtimeFlavor : ${{ parameters.runtimeFlavor }}
50- runTests : ${{ parameters.runTests }}
34+ runTests : false
5135 timeoutInMinutes : ${{ parameters.timeoutInMinutes }}
52- preBuildSteps : ${{ parameters.preBuildSteps }}
5336 container : ${{ parameters.container }}
5437 condition : ${{ parameters.condition }}
5538 dependOnEvaluatePaths : ${{ parameters.dependOnEvaluatePaths }}
@@ -60,33 +43,14 @@ jobs:
6043 name : build
6144 displayName : ' Build'
6245
63- ${{ if and(ne(parameters.liveRuntimeBuildConfig, ''), eq(parameters.runTests, true)) }} :
64- dependsOn :
65- # Use full product dependency for test runs
66- - ${{ format('{0}_{1}_product_build_{2}{3}_{4}_{5}', parameters.runtimeFlavor, parameters.runtimeVariant, parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.liveRuntimeBuildConfig) }}
67-
6846 variables :
6947 - librariesTestsArtifactName : ${{ format('libraries_test_assets_{0}{1}_{2}_{3}', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
7048 - _subset : tools+libs+libs.tests
71- - ${{ if and(eq(parameters.runTests, false), eq(parameters.useHelix, false)) }} :
72- - _subset : tools+libs
7349 - _buildAction : ' '
74- - _additionalBuildArguments : ' '
75- - ${{ parameters.variables }}
76-
77- # Tests only run for 'allConfiguration' and 'net48' build-jobs
78- # Only pass -test for when we aren't running tests using Helix.
79- - ${{ if and(eq(parameters.runTests, true), eq(parameters.useHelix, false)) }} :
80- - _buildAction : -restore -build -test
81- - ${{ if eq(parameters.useHelix, true) }} :
82- - _additionalBuildArguments : /p:ArchiveTests=true
83-
50+ - _additionalBuildArguments : ' /p:ArchiveTests=true'
8451 - ${{ parameters.variables }}
8552
8653 steps :
87- - ${{ if eq(parameters.isOfficialBuild, true) }} :
88- - template : /eng/pipelines/common/restore-internal-tools.yml
89-
9054 - ${{ if in(parameters.osGroup, 'osx', 'maccatalyst', 'ios', 'iossimulator', 'tvos', 'tvossimulator') }} :
9155 - script : $(Build.SourcesDirectory)/eng/install-native-dependencies.sh ${{ parameters.osGroup }}
9256 displayName : Install Build Dependencies
@@ -109,56 +73,26 @@ jobs:
10973 df -h
11074 displayName: Disk Usage after Build
11175
112- - ${{ if eq(parameters.runTests, false) }} :
113- - template : /eng/pipelines/libraries/prepare-for-bin-publish.yml
114- parameters :
115- isOfficialBuild : ${{ parameters.isOfficialBuild }}
116-
117- - template : /eng/pipelines/common/upload-artifact-step.yml
118- parameters :
119- rootFolder : $(Build.ArtifactStagingDirectory)/artifacts
120- includeRootFolder : false
121- archiveType : $(archiveType)
122- archiveExtension : $(archiveExtension)
123- tarCompression : $(tarCompression)
124- artifactName : $(librariesBuildArtifactName)
125- displayName : Build Assets
126-
127- # Upload test assets if we are sending tests to Helix and not running them directly in this job.
128- - ${{ if and(eq(parameters.runTests, false), eq(parameters.useHelix, true)) }} :
129- - template : /eng/pipelines/common/upload-artifact-step.yml
130- parameters :
131- rootFolder : $(Build.SourcesDirectory)/artifacts/helix
132- includeRootFolder : true
133- archiveType : $(archiveType)
134- archiveExtension : $(archiveExtension)
135- tarCompression : $(tarCompression)
136- artifactName : $(librariesTestsArtifactName)
137- displayName : Test Assets
138-
139- # Save AllConfigurations artifacts using the prepare-signed-artifacts format. The
140- # platform-specific jobs' nupkgs automatically flow through the matching platform-specific
141- # Installer build, but AllConfigurations should only be uploaded once, here.
142- - ${{ if eq(parameters.isOfficialAllConfigurations, true) }} :
143- - template : /eng/pipelines/common/upload-intermediate-artifacts-step.yml
144- parameters :
145- name : Libraries_AllConfigurations
146- publishPackagesCondition : >-
147- or(
148- eq(variables['_librariesBuildProducedPackages'], true),
149- eq(variables['Build.SourceBranchName'], 'main'),
150- eq(variables['System.PullRequest.TargetBranch'], 'main'))
151-
152- - ${{ if and(eq(parameters.runTests, true), eq(parameters.useHelix, true)) }} :
153- - template : /eng/pipelines/libraries/helix.yml
154- parameters :
155- osGroup : ${{ parameters.osGroup }}
156- targetRid : ${{ parameters.targetRid }}
157- archType : ${{ parameters.archType }}
158- buildConfig : ${{ parameters.buildConfig }}
159- helixQueues : ${{ parameters.helixQueues }}
160- testScope : ${{ parameters.testScope }}
161- shouldContinueOnError : ${{ parameters.shouldContinueOnError }}
162- creator : dotnet-bot
163- testRunNamePrefixSuffix : $(_testRunNamePrefixSuffix)
164- extraHelixArguments : $(_extraHelixArguments)
76+ - template : /eng/pipelines/libraries/prepare-for-bin-publish.yml
77+
78+ - template : /eng/pipelines/common/upload-artifact-step.yml
79+ parameters :
80+ rootFolder : $(Build.ArtifactStagingDirectory)/artifacts
81+ includeRootFolder : false
82+ archiveType : $(archiveType)
83+ archiveExtension : $(archiveExtension)
84+ tarCompression : $(tarCompression)
85+ artifactName : $(librariesBuildArtifactName)
86+ displayName : Build Assets
87+
88+ # Upload test assets
89+ # We'll pull them down in another job to send to Helix
90+ - template : /eng/pipelines/common/upload-artifact-step.yml
91+ parameters :
92+ rootFolder : $(Build.SourcesDirectory)/artifacts/helix
93+ includeRootFolder : true
94+ archiveType : $(archiveType)
95+ archiveExtension : $(archiveExtension)
96+ tarCompression : $(tarCompression)
97+ artifactName : $(librariesTestsArtifactName)
98+ displayName : Test Assets
0 commit comments