mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-11 02:13:38 +09:00
Adding a ci leg for Source build (#36141)
* successfullsource build * adding a new source build leg. * remove yy * add default vlaue * addressing feedback * use boolean value * addind comment and other feedback * adding colon and removing unintentional change * adding default value of isSourceBUild
This commit is contained in:
parent
5685928450
commit
a01c3abe20
4 changed files with 36 additions and 4 deletions
|
@ -3,7 +3,11 @@
|
|||
BeforeTargets="BeforeCompile"
|
||||
Condition="'$(DotNetBuildFromSource)' == 'true' and
|
||||
('$(GeneratePlatformNotSupportedAssembly)' == 'true' or '$(GeneratePlatformNotSupportedAssemblyMessage)' != '')">
|
||||
|
||||
|
||||
<PropertyGroup>
|
||||
<DotNetSourceBuildIntermediatePath Condition="'$(DotNetSourceBuildIntermediatePath)' == '' and '$(ContinuousIntegrationBuild)' == 'true'">$(IntermediateOutputPath)</DotNetSourceBuildIntermediatePath>
|
||||
</PropertyGroup>
|
||||
|
||||
<Error Condition="'$(DotNetSourceBuildIntermediatePath)' == ''"
|
||||
Text="'DotNetSourceBuildIntermediatePath' must be specified when 'DotNetBuildFromSource' is true" />
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ parameters:
|
|||
framework: ''
|
||||
isOfficialBuild: false
|
||||
isOfficialAllConfigurations: false
|
||||
isSourceBuild: false
|
||||
liveRuntimeBuildConfig: ''
|
||||
runtimeFlavor: 'coreclr'
|
||||
timeoutInMinutes: 150
|
||||
|
@ -24,8 +25,12 @@ jobs:
|
|||
- template: /eng/common/templates/job/job.yml
|
||||
parameters:
|
||||
${{ if notIn(parameters.framework, 'allConfigurations', 'net472') }}:
|
||||
displayName: ${{ format('Libraries {0} {1}{2} {3} {4}', parameters.displayName, parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
|
||||
name: ${{ format('libraries_{0}_{1}{2}_{3}_{4}', parameters.name, parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
|
||||
${{ if eq(parameters.isSourceBuild, false) }}:
|
||||
displayName: ${{ format('Libraries {0} {1}{2} {3} {4}', parameters.displayName, parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
|
||||
name: ${{ format('libraries_{0}_{1}{2}_{3}_{4}', parameters.name, parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
|
||||
${{ if eq(parameters.isSourceBuild, true) }}:
|
||||
displayName: ${{ format('Libraries {0} {1}{2} {3} {4}', 'Source Build', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
|
||||
name: ${{ format('libraries_{0}_{1}{2}_{3}_{4}', 'sourcebuild', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
|
||||
${{ if in(parameters.framework, 'allConfigurations', 'net472') }}:
|
||||
displayName: ${{ format('Libraries {0} {1} {2} {3} {4}', parameters.displayName, parameters.osGroup, parameters.framework, parameters.archType, parameters.buildConfig) }}
|
||||
name: ${{ format('libraries_{0}_{1}_{2}{3}_{4}_{5}', parameters.name, parameters.framework, parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
|
||||
|
@ -75,6 +80,9 @@ jobs:
|
|||
- _finalFrameworkArg: -allConfigurations
|
||||
- _extraHelixArguments: /p:BuildAllConfigurations=true
|
||||
|
||||
- ${{ if eq(parameters.isSourceBuild, true) }}:
|
||||
- _finalFrameworkArg: /p:DotnetBuildFromSource=true
|
||||
|
||||
- ${{ if eq(parameters.isOfficialAllConfigurations, true) }}:
|
||||
- librariesBuildArtifactName: 'libraries_bin_official_allconfigurations'
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ parameters:
|
|||
archType: ''
|
||||
crossrootfsDir: ''
|
||||
framework: ''
|
||||
isSourceBuild: false
|
||||
isOfficialBuild: false
|
||||
isOfficialAllConfigurations: false
|
||||
runtimeVariant: ''
|
||||
|
@ -37,6 +38,7 @@ jobs:
|
|||
framework: ${{ parameters.framework }}
|
||||
isOfficialBuild: ${{ parameters.isOfficialBuild }}
|
||||
isOfficialAllConfigurations: ${{ parameters.isOfficialAllConfigurations }}
|
||||
isSourceBuild: ${{ parameters.isSourceBuild }}
|
||||
liveRuntimeBuildConfig: ${{ parameters.liveRuntimeBuildConfig }}
|
||||
runtimeFlavor: ${{ parameters.runtimeFlavor }}
|
||||
timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
|
||||
|
@ -96,7 +98,7 @@ jobs:
|
|||
df -h
|
||||
displayName: Disk Usage after Build
|
||||
|
||||
- ${{ if eq(parameters.runTests, false) }}:
|
||||
- ${{ if and(eq(parameters.runTests, false), ne(parameters.isSourceBuild, true)) }}:
|
||||
- ${{ if ne(parameters.isOfficialBuild, true) }}:
|
||||
- task: CopyFiles@2
|
||||
displayName: Prepare testhost folder to publish
|
||||
|
|
|
@ -548,6 +548,24 @@ jobs:
|
|||
eq(dependencies.checkout.outputs['SetPathVars_libraries.containsChange'], true),
|
||||
eq(variables['isFullMatrix'], true))
|
||||
|
||||
#
|
||||
# Libraries Sourcebuild Build
|
||||
#
|
||||
- template: /eng/pipelines/common/platform-matrix.yml
|
||||
parameters:
|
||||
jobTemplate: /eng/pipelines/libraries/build-job.yml
|
||||
buildConfig: Release
|
||||
platforms:
|
||||
- Linux_x64
|
||||
jobParameters:
|
||||
runTests: false
|
||||
liveRuntimeBuildConfig: release
|
||||
isSourceBuild: true
|
||||
condition: >-
|
||||
or(
|
||||
eq(dependencies.checkout.outputs['SetPathVars_libraries.containsChange'], true),
|
||||
eq(variables['isFullMatrix'], true))
|
||||
|
||||
#
|
||||
# Installer Build and Test
|
||||
# These are always built since they only take like 15 minutes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue