@@ -8,29 +8,17 @@ parameters:
88 crossrootfsDir : ' '
99 framework : ' net6.0'
1010 isOfficialBuild : false
11- isOfficialAllConfigurations : false
1211 runtimeVariant : ' '
1312 platform : ' '
14-
15- # When set to a non-empty value (Debug / Release), it determines the runtime's
16- # build configuration to use for building libraries and tests. Setting this
17- # property implies a dependency of this job on the appropriate runtime build
18- # and is used to construct the name of the Azure artifact representing
19- # runtime build to use for building the libraries and library tests.
20- liveRuntimeBuildConfig : ' '
21- runtimeFlavor : ' coreclr'
13+ testScope : ' '
2214
2315 timeoutInMinutes : 150
24- preBuildSteps : []
2516 container : ' '
2617 condition : true
2718 dependOnEvaluatePaths : false
2819 shouldContinueOnError : false
2920 variables : {}
3021 pool : ' '
31- runTests : false
32- useHelix : true
33- testScope : ' '
3422 testBuildPlatforms : []
3523
3624jobs :
4432 crossrootfsDir : ${{ parameters.crossrootfsDir }}
4533 framework : ${{ parameters.framework }}
4634 isOfficialBuild : ${{ parameters.isOfficialBuild }}
47- isOfficialAllConfigurations : ${{ parameters.isOfficialAllConfigurations }}
48- liveRuntimeBuildConfig : ${{ parameters.liveRuntimeBuildConfig }}
4935 runtimeFlavor : ${{ parameters.runtimeFlavor }}
50- runTests : ${{ parameters.runTests }}
36+ runTests : false
5137 timeoutInMinutes : ${{ parameters.timeoutInMinutes }}
52- preBuildSteps : ${{ parameters.preBuildSteps }}
5338 container : ${{ parameters.container }}
5439 condition : ${{ parameters.condition }}
5540 dependOnEvaluatePaths : ${{ parameters.dependOnEvaluatePaths }}
@@ -59,33 +44,14 @@ jobs:
5944 name : build
6045 displayName : ' Build'
6146
62- ${{ if and(ne(parameters.liveRuntimeBuildConfig, ''), eq(parameters.runTests, true)) }} :
63- dependsOn :
64- # Use full product dependency for test runs
65- - ${{ format('{0}_{1}_product_build_{2}{3}_{4}_{5}', parameters.runtimeFlavor, parameters.runtimeVariant, parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.liveRuntimeBuildConfig) }}
66-
6747 variables :
6848 - librariesTestsArtifactName : ${{ format('libraries_test_assets_{0}_{1}_{2}', parameters.osGroup, parameters.archType, parameters.buildConfig) }}
69- - _subset : libs
49+ - _subset : libs+libs.tests
7050 - _buildAction : ' '
71- - _additionalBuildArguments : ' '
72- - ${{ parameters.variables }}
73-
74- # Tests only run for 'allConfiguration' and 'net48' build-jobs
75- # If platform is in testBuildPlatforms we build tests as well.
76- - ${{ if or(eq(parameters.runTests, true), containsValue(parameters.testBuildPlatforms, parameters.platform)) }} :
77- - _subset : libs+libs.tests
78- - ${{ if eq(parameters.useHelix, false) }} :
79- - _buildAction : -restore -build -test
80- - ${{ if eq(parameters.useHelix, true) }} :
81- - _additionalBuildArguments : /p:ArchiveTests=true
82-
51+ - _additionalBuildArguments : ' /p:ArchiveTests=true'
8352 - ${{ parameters.variables }}
8453
8554 steps :
86- - ${{ if eq(parameters.isOfficialBuild, true) }} :
87- - template : /eng/pipelines/common/restore-internal-tools.yml
88-
8955 - ${{ if in(parameters.osGroup, 'OSX', 'MacCatalyst', 'iOS', 'iOSSimulator', 'tvOS', 'tvOSSimulator') }} :
9056 - script : $(Build.SourcesDirectory)/eng/install-native-dependencies.sh ${{ parameters.osGroup }} ${{ parameters.archType }} azDO
9157 displayName : Install Build Dependencies
@@ -108,55 +74,26 @@ jobs:
10874 df -h
10975 displayName: Disk Usage after Build
11076
111- - ${{ if eq(parameters.runTests, false) }} :
112- - template : /eng/pipelines/libraries/prepare-for-bin-publish.yml
113- parameters :
114- isOfficialBuild : ${{ parameters.isOfficialBuild }}
115-
116- - template : /eng/pipelines/common/upload-artifact-step.yml
117- parameters :
118- rootFolder : $(Build.ArtifactStagingDirectory)/artifacts
119- includeRootFolder : false
120- archiveType : $(archiveType)
121- archiveExtension : $(archiveExtension)
122- tarCompression : $(tarCompression)
123- artifactName : $(librariesBuildArtifactName)
124- displayName : Build Assets
125-
126- - ${{ if containsValue(parameters.testBuildPlatforms, parameters.platform) }} :
127- - template : /eng/pipelines/common/upload-artifact-step.yml
128- parameters :
129- rootFolder : $(Build.SourcesDirectory)/artifacts/helix
130- includeRootFolder : true
131- archiveType : $(archiveType)
132- archiveExtension : $(archiveExtension)
133- tarCompression : $(tarCompression)
134- artifactName : $(librariesTestsArtifactName)
135- displayName : Test Assets
136-
137- # Save AllConfigurations artifacts using the prepare-signed-artifacts format. The
138- # platform-specific jobs' nupkgs automatically flow through the matching platform-specific
139- # Installer build, but AllConfigurations should only be uploaded once, here.
140- - ${{ if eq(parameters.isOfficialAllConfigurations, true) }} :
141- - template : /eng/pipelines/common/upload-intermediate-artifacts-step.yml
142- parameters :
143- name : Libraries_AllConfigurations
144- publishPackagesCondition : >-
145- or(
146- eq(variables['_librariesBuildProducedPackages'], true),
147- eq(variables['Build.SourceBranchName'], 'main'),
148- eq(variables['System.PullRequest.TargetBranch'], 'main'))
149-
150- - ${{ if and(eq(parameters.runTests, true), eq(parameters.useHelix, true)) }} :
151- - template : /eng/pipelines/libraries/helix.yml
152- parameters :
153- osGroup : ${{ parameters.osGroup }}
154- targetRid : ${{ parameters.targetRid }}
155- archType : ${{ parameters.archType }}
156- buildConfig : ${{ parameters.buildConfig }}
157- helixQueues : ${{ parameters.helixQueues }}
158- testScope : ${{ parameters.testScope }}
159- shouldContinueOnError : ${{ parameters.shouldContinueOnError }}
160- creator : dotnet-bot
161- testRunNamePrefixSuffix : $(_testRunNamePrefixSuffix)
162- extraHelixArguments : $(_extraHelixArguments)
77+ - template : /eng/pipelines/libraries/prepare-for-bin-publish.yml
78+
79+ - template : /eng/pipelines/common/upload-artifact-step.yml
80+ parameters :
81+ rootFolder : $(Build.ArtifactStagingDirectory)/artifacts
82+ includeRootFolder : false
83+ archiveType : $(archiveType)
84+ archiveExtension : $(archiveExtension)
85+ tarCompression : $(tarCompression)
86+ artifactName : $(librariesBuildArtifactName)
87+ displayName : Build Assets
88+
89+ # Upload test assets
90+ # We'll pull them down in another job to send to Helix
91+ - template : /eng/pipelines/common/upload-artifact-step.yml
92+ parameters :
93+ rootFolder : $(Build.SourcesDirectory)/artifacts/helix
94+ includeRootFolder : true
95+ archiveType : $(archiveType)
96+ archiveExtension : $(archiveExtension)
97+ tarCompression : $(tarCompression)
98+ artifactName : $(librariesTestsArtifactName)
99+ displayName : Test Assets
0 commit comments