Skip to content

Commit

Permalink
Split the packaging job (#2737)
Browse files Browse the repository at this point in the history
Some smaller agents run out of storage with all the symbols.
  • Loading branch information
mattleibow authored Feb 3, 2024
1 parent 79162b3 commit 81edb6a
Showing 1 changed file with 30 additions and 11 deletions.
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

0 comments on commit 81edb6a

Please sign in to comment.