Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn committed Sep 16, 2024
1 parent 358a6e7 commit a994952
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 11 deletions.
12 changes: 11 additions & 1 deletion tools/ci_build/github/azure-pipelines/py-packaging-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,17 @@ extends:
machine_pool: 'onnxruntime-Ubuntu2204-AMD-CPU'
extra_build_arg: ${{ parameters.build_py_parameters }}
cmake_build_type: ${{ parameters.cmake_build_type }}


- stage: Python_Packaging_Linux_ARM
dependsOn: []
jobs:
- template: /tools/ci_build/github/azure-pipelines/templates/py-linux.yml@self
parameters:
arch: 'aarch64'
machine_pool: 'onnxruntime-linux-ARM64-CPU-2019'
extra_build_arg: ${{ parameters.build_py_parameters }}
cmake_build_type: ${{ parameters.cmake_build_type }}

- template: /tools/ci_build/github/azure-pipelines/templates/py-linux-gpu.yml@self
parameters:
arch: 'x86_64'
Expand Down
29 changes: 19 additions & 10 deletions tools/ci_build/github/azure-pipelines/templates/py-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@ jobs:
workspace:
clean: all
pool: ${{ parameters.machine_pool }}
templateContext:
codeSignValidation:
enabled: true
break: true
psscriptanalyzer:
enabled: true
sdl:
binskim:
enabled: true
scanOutputDirectoryOnly: true
targetPathPattern: '+:file|$(Build.ArtifactStagingDirectory)\**\*.pyd;+:file|$(Build.ArtifactStagingDirectory)\**\*.dll;-:file|$(Build.ArtifactStagingDirectory)\**\DirectML.dll'
outputs:
- output: pipelineArtifact
targetPath: $(Build.ArtifactStagingDirectory)
artifactName: linux_cpu_wheel_${{ parameters.arch }}
variables:
# The build machine pool doesn't have dotnet, so it can't run CG.
- name: skipComponentGovernanceDetection
Expand Down Expand Up @@ -83,17 +98,11 @@ jobs:
env:
ADDITIONAL_DOCKER_PARAMETER: "--volume $(ORT_CACHE_DIR):/cache -e CCACHE_DIR=/cache -e ORT_BUILD_WITH_CACHE=1"

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: ONNXRuntime python wheel'
inputs:
PathtoPublish: '$(Build.BinariesDirectory)/dist'
ArtifactName: onnxruntime

- task: PublishPipelineArtifact@0
displayName: 'Publish Test Binaries'
inputs:
artifactName: 'drop-linux-cpu-${{ parameters.arch }}'
targetPath: '$(Build.BinariesDirectory)/${{ parameters.cmake_build_type }}'
- script: |
mv $(Build.BinariesDirectory)/${{ parameters.cmake_build_type }} $(Build.BinariesDirectory)/dist
workingDirectory: '$(Build.ArtifactStagingDirectory)'
displayName: 'unzip the package'
- template: component-governance-component-detection-steps.yml
parameters :
Expand Down

0 comments on commit a994952

Please sign in to comment.