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

Fixing issue where unzip package froim 'onnxruntime-win-x64-gpu' was also uploaded. #19096

Merged
merged 9 commits into from
Jan 13, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,9 @@ stages:
displayName: 'Publish Pipeline Combined GPU Package Artifact'
inputs:
artifactName: 'onnxruntime-win-x64-gpu'
targetPath: '$(Build.ArtifactStagingDirectory)'
targetPath: '$(Build.ArtifactStagingDirectory)/onnxruntime-win-x64-gpu-$(OnnxRuntimeVersion).zip'


- template: templates/component-governance-component-detection-steps.yml
parameters :
condition : 'succeeded'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ stages:
parameters:
BaseImage: 'registry.access.redhat.com/ubi8/ubi'
OnnxruntimeArch: 'x64'
OnnxruntimeCFlags: '-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -fcf-protection -O3 -Wl,--strip-all'
OnnxruntimeCXXFlags: '-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -fcf-protection -O3 -Wl,--strip-all'
OnnxruntimeNodejsBindingArch: 'x64'
PoolName: 'onnxruntime-Ubuntu2004-AMD-CPU'
PackageJava: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,24 @@ stages:
filename: $(Build.SourcesDirectory)\onnxruntime-inference-examples\c_cxx\squeezenet\run_capi_application.bat
arguments: $(Build.SourcesDirectory)\onnxruntime $(Build.ArtifactStagingDirectory)\onnxruntime-win-x64-gpu-$(OnnxRuntimeVersion).zip $(Build.SourcesDirectory)\onnxruntime-inference-examples\c_cxx\squeezenet
workingFolder: '$(Build.ArtifactStagingDirectory)'
- script: |
dir
workingDirectory: '$(Build.ArtifactStagingDirectory)'
displayName: 'List ArtifactStagingDirectory before delete'

- task: DeleteFiles@1
displayName: 'Clean up none zip files from ArtifactStagingDirectory'
inputs:
SourceFolder: $(Build.ArtifactStagingDirectory)
Contents: '*/'

- script: |
dir
workingDirectory: '$(Build.ArtifactStagingDirectory)'
displayName: 'List ArtifactStagingDirectory after delete'

- task: PublishPipelineArtifact@0
displayName: 'Publish Pipeline Combined GPU Package Artifact'
inputs:
artifactName: 'onnxruntime-win-x64-gpu'
targetPath: '$(Build.ArtifactStagingDirectory)'
targetPath: '$(Build.ArtifactStagingDirectory)/onnxruntime-win-x64-gpu-$(OnnxRuntimeVersion).zip'
Loading