@@ -4,6 +4,10 @@ parameters:
4
4
type : string
5
5
default : ' onnxruntime-qnn-windows-vs-2022-arm64'
6
6
7
+ - name : PYTHON_VERSION
8
+ type : string
9
+ default : ' 3.11'
10
+
7
11
- name : QNN_SDK
8
12
displayName : QNN SDK Version
9
13
type : string
@@ -25,25 +29,14 @@ parameters:
25
29
default : false
26
30
27
31
jobs :
28
- - job : Win_py_arm64_qnn_Wheels
32
+ - job : Win_py_arm64_qnn_Wheels_${{ replace(parameters.PYTHON_VERSION,'.','_') }}
29
33
timeoutInMinutes : 210
30
34
workspace :
31
35
clean : all
32
36
pool :
33
37
name : ${{ parameters.MACHINE_POOL }}
34
38
os : windows
35
39
hostArchitecture : Arm64
36
- strategy :
37
- matrix :
38
- Python311_arm64 :
39
- PythonVersion : ' 3.11.0'
40
- LocalPythonDir : ' C:\Python\Python311'
41
- Python312_arm64 :
42
- PythonVersion : ' 3.12.6'
43
- LocalPythonDir : ' C:\Python\Python312'
44
- Python313_arm64 :
45
- PythonVersion : ' 3.13.2'
46
- LocalPythonDir : ' C:\Python\Python313'
47
40
variables :
48
41
GRADLE_OPTS : ' -Dorg.gradle.daemon=false'
49
42
VSGenerator : ' Visual Studio 17 2022'
54
47
55
48
- template : telemetry-steps.yml
56
49
57
- - script : |
58
- MKDIR $(Agent.ToolsDirectory)\Python\$(PythonVersion)\arm64
59
- XCOPY /s /y /h /e /c /q "$(LocalPythonDir)\*.*" $(Agent.ToolsDirectory)\Python\$(PythonVersion)\arm64\
60
- COPY NUL $(Agent.ToolsDirectory)\Python\$(PythonVersion)\arm64.complete
61
- DIR $(Agent.ToolsDirectory)\Python
62
- DIR $(Agent.ToolsDirectory)\Python\$(PythonVersion)
63
- DIR $(Agent.ToolsDirectory)\Python\$(PythonVersion)\arm64
64
- displayName: Copy python $(PythonVersion) version to agent tools directory
65
-
66
50
- task : UsePythonVersion@0
67
51
inputs :
68
- versionSpec : $(PythonVersion)
52
+ versionSpec : ${{ parameters.PYTHON_VERSION }}
69
53
addToPath : true
70
54
architecture : ' arm64'
71
55
@@ -150,13 +134,13 @@ jobs:
150
134
- task : 1ES.PublishPipelineArtifact@1
151
135
displayName : ' Publish Artifact: ONNXRuntime python wheel'
152
136
inputs :
153
- artifactName : onnxruntime_qnn_arm64_$(PythonVersion)
137
+ artifactName : onnxruntime_qnn_arm64_${{ parameters.PYTHON_VERSION }}
154
138
targetPath : ' $(Build.ArtifactStagingDirectory)'
155
139
- ${{ if eq(parameters.is1ES, false) }} :
156
140
- task : PublishPipelineArtifact@1
157
141
displayName : ' Publish Artifact: ONNXRuntime python wheel'
158
142
input :
159
- artifactName : onnxruntime_qnn_arm64_$(PythonVersion)
143
+ artifactName : onnxruntime_qnn_arm64_${{ parameters.PYTHON_VERSION }}
160
144
targetPath : ' $(Build.ArtifactStagingDirectory)'
161
145
162
146
- script : |
0 commit comments