mirror of
https://github.com/hanzoai/ROCm.git
synced 2026-11-02 19:03:06 +00:00
- Also, fixes to rocprofiler-sdk when incorporating recent features. - URL encoding algorithm converts trailing '=' in the base64 string to an integer representing the number of those trailing '=' characters.
43 lines
1.5 KiB
YAML
43 lines
1.5 KiB
YAML
# compress build products into tarball
|
|
# delete build products after compression
|
|
# publish can be toggled off for jobs that produce multiple tarballs
|
|
# for those cases, only publish the last call which puts all the tarballs in one container folder
|
|
parameters:
|
|
- name: artifactName
|
|
type: string
|
|
default: 'drop'
|
|
- name: publish
|
|
type: boolean
|
|
default: true
|
|
- name: gpuTarget
|
|
type: string
|
|
default: ''
|
|
|
|
steps:
|
|
- task: ArchiveFiles@2
|
|
displayName: '${{ parameters.artifactName }} Compress'
|
|
inputs:
|
|
includeRootFolder: false
|
|
archiveType: 'tar'
|
|
tarCompression: 'gz'
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.DefinitionName)_$(Build.SourceBranchName)_$(Build.BuildId)_$(Build.BuildNumber)_ubuntu2204_${{ parameters.artifactName }}_${{ parameters.gpuTarget }}.tar.gz'
|
|
- task: DeleteFiles@1
|
|
displayName: 'Cleanup Staging Area'
|
|
inputs:
|
|
SourceFolder: '$(Build.BinariesDirectory)'
|
|
Contents: '/**/*'
|
|
RemoveDotFiles: true
|
|
- task: Bash@3
|
|
displayName: Save pipeline artifact file name
|
|
inputs:
|
|
workingDirectory: $(Pipeline.Workspace)
|
|
targetType: inline
|
|
script: echo "$(Build.DefinitionName)_$(Build.SourceBranchName)_$(Build.BuildId)_$(Build.BuildNumber)_ubuntu2204_${{ parameters.artifactName }}_${{ parameters.gpuTarget }}.tar.gz" >> pipelineArtifacts.txt
|
|
# then publish it
|
|
- ${{ if parameters.publish }}:
|
|
- task: PublishPipelineArtifact@1
|
|
displayName: '${{ parameters.artifactName }} Publish'
|
|
retryCountOnTaskFailure: 3
|
|
inputs:
|
|
targetPath: '$(Build.ArtifactStagingDirectory)'
|