File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed
tools/ci_build/github/azure-pipelines/templates Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ jobs:
4646 clean : true
4747 submodules : none
4848
49- - task : UsePythonVersion@0
50- displayName : Use Python 3.12
51- inputs :
52- versionSpec : 3.12
53- ${{ if eq(parameters.OnnxruntimeArch, 'aarch64') }} :
54- architecture : arm64
49+ - ${{ if eq(parameters.OnnxruntimeArch, 'x64') }} :
50+ # Only need to install Python on x64 agents as Python is pre-installed on arm64 agents
51+ - task : UsePythonVersion@0
52+ displayName : Use Python 3.12
53+ inputs :
54+ versionSpec : 3.12
5555
5656 - template : set-version-number-variables-step.yml
5757 - ${{ if eq(parameters.OnnxruntimeArch, 'x64') }} :
Original file line number Diff line number Diff line change @@ -28,12 +28,13 @@ parameters:
2828 displayName : Architecture
2929 type : string
3030 # default: 'linux-x64'
31-
31+
3232steps :
3333- task : PythonScript@0
3434 inputs :
3535 scriptSource : ' filePath'
3636 scriptPath : ' tools/ci_build/linux_java_copy_strip_binary.py'
37+ pythonInterpreter : ' python3'
3738 arguments : >-
3839 --binary-dir $(Build.BinariesDirectory)
3940 --build-config ${{parameters.buildConfig}}
4748 inputs :
4849 targetPath : ' $(Build.BinariesDirectory)/${{parameters.artifactName}}'
4950 artifactName : ' drop-${{parameters.artifactName}}'
50-
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ stages:
5353 - task : UsePythonVersion@0
5454 inputs :
5555 versionSpec : ' 3.13'
56+ architecture : arm64
5657 addToPath : true
5758
5859 - script : |
@@ -77,7 +78,7 @@ stages:
7778 cd temp
7879 find $(Build.ArtifactStagingDirectory) -name '*.zip' -exec unzip {} \;
7980 rm -rf $(Build.ArtifactStagingDirectory)/*;
80- find . -type d -name 'onnxruntime-osx-*' -exec tar -czf {}.tgz {} \;
81+ find . -type d -name 'onnxruntime-osx-*' -exec tar -czf {}.tgz {} \;
8182 ls -l
8283 mv *.tgz $(Build.ArtifactStagingDirectory)
8384 displayName: 'Unzip Signed Files and Repackage to TGZ'
You can’t perform that action at this time.
0 commit comments