diff --git a/.azure-pipelines/Windows-CI.yml b/.azure-pipelines/Windows-CI.yml index cd4db0645b..2c0404576e 100644 --- a/.azure-pipelines/Windows-CI.yml +++ b/.azure-pipelines/Windows-CI.yml @@ -120,8 +120,12 @@ jobs: - script: | call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 - cd onnx-mlir\third_party\onnx - python3 -m pip install . + # pip installing onnx from thirdparty source fails on vmImage: 'windows-2022' + # therefore we install from specified onnx version instead + # TODO: fetch the version from thirdparty\onnx\VERSION_NUMBER + #cd onnx-mlir\third_party\onnx + #python3 -m pip install . + python3 -m pip install onnx==1.14.0 env: CMAKE_ARGS: -DCMAKE_PREFIX_PATH="$(Agent.BuildDirectory)\protobuf_install" -DONNX_USE_PROTOBUF_SHARED_LIBS=OFF -DProtobuf_USE_STATIC_LIBS=ON -DONNX_USE_MSVC_STATIC_RUNTIME=OFF displayName: Install onnx