Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split the packaging job #2737

Merged
merged 1 commit into from
Feb 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 30 additions & 11 deletions scripts/azure-templates-stages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,11 @@ stages:
jobs:
- template: azure-templates-bootstrapper.yml # Package NuGets
parameters:
name: package_windows
name: package_normal_windows
displayName: Package NuGets
buildPipelineType: ${{ parameters.buildPipelineType }}
vmImage: ${{ parameters.VM_IMAGE_WINDOWS}}
target: nuget
target: nuget-normal
additionalArgs: --skipExternals="all"
requiredArtifacts:
- name: native
Expand All @@ -437,22 +437,42 @@ stages:
artifactName: nuget
pathToPublish: 'output/nugets'
- task: PublishBuildArtifacts@1
displayName: Publish the special nuget artifacts
displayName: Publish the SignList.xml into nuget artifacts
inputs:
artifactName: nuget_special
pathToPublish: 'output/nugets-special'
artifactName: nuget
pathToPublish: 'scripts\SignList.xml'
- task: PublishBuildArtifacts@1
displayName: Publish the special nuget artifacts
displayName: Publish the symbols nuget artifacts
inputs:
artifactName: nuget_symbols
pathToPublish: 'output/nugets-symbols'
- pwsh: |
Remove-Item ./output/native/ -Recurse -Force
Remove-Item ./output/nugets/ -Recurse -Force
Remove-Item ./output/nugets-symbols/ -Recurse -Force
displayName: Delete the pre-published folders
- template: azure-templates-bootstrapper.yml # Package Special NuGets
parameters:
name: package_special_windows
displayName: Package Special NuGets
buildPipelineType: ${{ parameters.buildPipelineType }}
vmImage: ${{ parameters.VM_IMAGE_WINDOWS}}
dependsOn:
- package_normal_windows
target: nuget-special
additionalArgs: --skipExternals="all" --exclusive
requiredArtifacts:
- name: nuget
dir: nugets
- name: nuget_symbols
dir: nugets-symbols
postBuildSteps:
- task: PublishBuildArtifacts@1
displayName: Publish the SignList.xml into nuget artifacts
displayName: Publish the special nuget artifacts
inputs:
artifactName: nuget
pathToPublish: 'scripts\SignList.xml'
artifactName: nuget_special
pathToPublish: 'output/nugets-special'
- pwsh: |
Remove-Item ./output/native/ -Recurse -Force
Remove-Item ./output/nugets/ -Recurse -Force
Remove-Item ./output/nugets-special/ -Recurse -Force
Remove-Item ./output/nugets-symbols/ -Recurse -Force
Expand All @@ -476,7 +496,6 @@ stages:
additionalArgs: --nugetDiffPrerelease=$(NUGET_DIFF_PRERELEASE)
shouldPublish: false
requiredArtifacts:
- name: package_windows
- name: nuget
dir: nugets
preBuildSteps:
Expand Down
Loading