-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
334 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
parameters: | ||
archType: '' | ||
osGroup: '' | ||
osSubgroup: '' | ||
isOfficialBuild: false | ||
|
||
steps: | ||
# Always build the crossdac, that way we know in CI/PR if things break to build. | ||
- ${{ if and(eq(parameters.osGroup, 'windows'), notin(parameters.archType, 'x86')) }}: | ||
- script: set __TestIntermediateDir=int&&$(Build.SourcesDirectory)/src/coreclr/build-runtime$(scriptExt) $(buildConfig) $(archType) -ci -linuxdac -ninja $(officialBuildIdArg) | ||
displayName: Build Cross OS Linux DAC for Windows | ||
|
||
- script: set __TestIntermediateDir=int&&$(Build.SourcesDirectory)/src/coreclr/build-runtime$(scriptExt) $(buildConfig) $(archType) -ci -alpinedac -ninja $(officialBuildIdArg) | ||
displayName: Build Cross OS Linux-musl DAC for Windows | ||
|
||
- task: CopyFiles@2 | ||
displayName: Gather CrossDac Artifacts (Linux) | ||
inputs: | ||
SourceFolder: $(buildLinuxDacRootFolderPath) | ||
Contents: | | ||
**/* | ||
!**/sharedFramework/**/* | ||
TargetFolder: $(buildLinuxDacStagingPath) | ||
|
||
- task: CopyFiles@2 | ||
displayName: Gather CrossDac Artifacts (Linux_musl) | ||
inputs: | ||
SourceFolder: $(buildMuslDacRootFolderPath) | ||
Contents: | | ||
**/* | ||
!**/sharedFramework/**/* | ||
TargetFolder: '$(buildMuslDacStagingPath)' | ||
|
||
- template: /eng/pipelines/coreclr/templates/sign-diagnostic-files.yml | ||
parameters: | ||
basePath: $(crossDacArtifactPath) | ||
isOfficialBuild: ${{ parameters.isOfficialBuild }} | ||
timeoutInMinutes: 30 | ||
|
||
- ${{ if eq(parameters.osGroup, 'Linux') }}: | ||
- task: CopyFiles@2 | ||
displayName: Gather runtime for CrossDac | ||
inputs: | ||
SourceFolder: $(coreClrProductRootFolderPath) | ||
Contents: libcoreclr.so | ||
TargetFolder: '$(crossDacArtifactPath)/${{ parameters.osGroup }}${{ parameters.osSubgroup }}.$(archType).$(buildConfigUpper)/$(crossDacHostArch)' | ||
|
||
# Make the assets available in a single container for the packaging job. | ||
- task: PublishBuildArtifacts@1 | ||
displayName: Publish runtime for CrossDac | ||
inputs: | ||
pathtoPublish: $(crossDacArtifactPath) | ||
PublishLocation: Container | ||
artifactName: $(buildCrossDacArtifactName) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
parameters: | ||
archType: '' | ||
buildConfig: '' | ||
container: '' | ||
crossDacPlatforms: {} | ||
dependOnEvaluatePaths: false | ||
isOfficialBuild: false | ||
osGroup: '' | ||
osSubgroup: '' | ||
platform: '' | ||
pool: '' | ||
runtimeVariant: '' | ||
stagedBuild: false | ||
testGroup: '' | ||
timeoutInMinutes: '' | ||
variables: {} | ||
|
||
jobs: | ||
- template: xplat-pipeline-job.yml | ||
parameters: | ||
archType: ${{ parameters.archType }} | ||
buildConfig: ${{ parameters.buildConfig }} | ||
container: ${{ parameters.container }} | ||
condition: ${{ parameters.isOfficialBuild }} | ||
helixType: 'build/product/' | ||
osGroup: ${{ parameters.osGroup }} | ||
osSubgroup: ${{ parameters.osSubgroup }} | ||
pool: ${{ parameters.pool }} | ||
runtimeVariant: ${{ parameters.runtimeVariant }} | ||
stagedBuild: ${{ parameters.stagedBuild }} | ||
timeoutInMinutes: ${{ parameters.timeoutInMinutes }} | ||
dependOnEvaluatePaths: ${{ parameters.dependOnEvaluatePaths }} | ||
|
||
name: crossdacpack | ||
displayName: CrossDac Packaging | ||
|
||
variables: | ||
- name: officialBuildIdArg | ||
value: '' | ||
- name: crossDacArgs | ||
value: '' | ||
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')) }}: | ||
- name: officialBuildIdArg | ||
value: '/p:OfficialBuildId=$(Build.BuildNumber)' | ||
- name: crossDacArgs | ||
value: '/p:CrossDacArtifactsDir=$(crossDacArtifactPath)/$(buildCrossDacArtifactName)' | ||
- name: SignType | ||
value: $[ coalesce(variables.OfficialSignType, 'real') ] | ||
- ${{ parameters.variables }} | ||
|
||
dependsOn: | ||
- ${{ if ne(parameters.crossDacPlatforms, '') }}: | ||
- ${{ each platform in parameters.crossDacPlatforms }}: | ||
- ${{ parameters.runtimeFlavor }}_${{ parameters.runtimeVariant }}_product_build_${{ platform }}_${{ parameters.buildConfig }} | ||
|
||
steps: | ||
- task: DownloadBuildArtifacts@0 | ||
displayName: Download CrossDac artifacts | ||
inputs: | ||
artifactName: $(buildCrossDacArtifactName) | ||
downloadPath: $(crossDacArtifactPath) | ||
checkDownloadedFiles: true | ||
|
||
- script: $(Build.SourcesDirectory)$(dir)build$(scriptExt) -subset crossdacpack -arch $(archType) $(osArg) -c $(buildConfig) $(officialBuildIdArg) $(crossDacArgs) -ci | ||
displayName: Build crossdac packaging | ||
|
||
# Save packages using the prepare-signed-artifacts format. | ||
- template: /eng/pipelines/common/upload-intermediate-artifacts-step.yml | ||
parameters: | ||
name: ${{ parameters.platform }} | ||
|
||
# Upload to artifacts to be signed | ||
- task: PublishPipelineArtifact@1 | ||
displayName: Publish Logs | ||
inputs: | ||
targetPath: $(Build.SourcesDirectory)/artifacts/log | ||
artifactName: 'CrossDacPackagingLogs' | ||
continueOnError: true | ||
condition: always() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
parameters: | ||
runtimeFlavor: 'coreclr' | ||
platforms: [] | ||
jobParameters: [] | ||
buildConfig: Release | ||
runtimeVariant: '' | ||
|
||
jobs: | ||
|
||
# | ||
# Build and Test | ||
# | ||
- template: /eng/pipelines/common/platform-matrix.yml | ||
parameters: | ||
jobTemplate: /eng/pipelines/installer/jobs/base-job.yml | ||
buildConfig: ${{ parameters.buildConfig }} | ||
platforms: ${{ parameters.platforms }} | ||
passPlatforms: true | ||
runtimeFlavor: ${{ parameters.runtimeFlavor }} | ||
runtimeVariant: ${{ parameters.runtimeVariant }} | ||
jobParameters: | ||
${{ insert }}: ${{ parameters.jobParameters }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.