Skip to content

Commit 21f122a

Browse files
eserscorCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent da4ca7e commit 21f122a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tools/ci_build/github/azure-pipelines/templates/py-win-cpu.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
${{if eq(variables['Build.SourceBranch'], 'refs/heads/main')}}:
124124
symbolExpiryTime: 60
125125
includePublicSymbolServer: true
126-
symbolsArtifactName: onnxruntime_cpu_win_x64_$(PythonVersion)
126+
symbolsArtifactName: onnxruntime_cpu_win_${{ parameters.ARCHITECTURE }}_$(PythonVersion)
127127
symbolsVersion: $(Build.BuildId)
128128
symbolProject: 'ONNX Runtime'
129129
subscription: 'OnnxrunTimeCodeSign_20240611'
@@ -165,8 +165,12 @@ jobs:
165165
python -m pip uninstall -y onnxruntime onnxruntime-gpu -qq
166166
Get-ChildItem -Path $(Build.ArtifactStagingDirectory)/*.whl | foreach {pip --disable-pip-version-check install --upgrade $_.fullname tabulate}
167167
Remove-Item -Recurse -Force onnxruntime
168-
if ("$(ExtraParam)" -contains "--use_azure") {
169-
$env:path="$(Build.SourcesDirectory)\build\${{ parameters.cmake_build_type }}\_deps\vcpkg-src\installed\x64-windows\bin;$(Build.SourcesDirectory)\build\${{ parameters.cmake_build_type }}\_deps\vcpkg-src\installed\x86-windows\bin;$env:path"
168+
if ("$(ExtraParam)".Split() -contains "--use_azure") {
169+
${{ if eq(parameters.ARCHITECTURE, 'arm64') }} {
170+
$env:path="$(Build.SourcesDirectory)\build\${{ parameters.cmake_build_type }}\_deps\vcpkg-src\installed\arm64-windows\bin;$env:path"
171+
} ${{ else }} {
172+
$env:path="$(Build.SourcesDirectory)\build\${{ parameters.cmake_build_type }}\_deps\vcpkg-src\installed\x64-windows\bin;$(Build.SourcesDirectory)\build\${{ parameters.cmake_build_type }}\_deps\vcpkg-src\installed\x86-windows\bin;$env:path"
173+
}
170174
python onnxruntime_test_python_azure.py
171175
}
172176
python onnx_backend_test_series.py

0 commit comments

Comments
 (0)