OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[GHA] Exclude onnx runtime files from package (#26973)
Mikhail Ryzhovfaa3ab2bf066
diff --git a/.github/workflows/job_build_linux.yml b/.github/workflows/job_build_linux.ymlindex 5ea7e063854..0cb7cfb93e1 100644--- a/.github/workflows/job_build_linux.yml+++ b/.github/workflows/job_build_linux.yml@@ -85,7 +85,6 @@ jobs:DEVELOPER_PACKAGE_DIR: /__w/openvino/openvino/developer_package_installBUILD_DIR: /__w/openvino/openvino/openvino_buildSCCACHE_AZURE_KEY_PREFIX: ${{ inputs.os }}_${{ inputs.arch }}_Release- ONNX_RUNTIME_UTILS: /__w/openvino/openvino/openvino/src/frontends/onnx/tests/ci_utils/onnxruntimeARTIFACTS_SHARE: "/mount/build-artifacts"MANIFEST_PATH: '/__w/openvino/openvino/manifest.yml'PRODUCT_TYPE: public_linux_${{ inputs.os }}_${{ inputs.arch }}_release@@ -182,12 +181,6 @@ jobs:- name: Pack Artifactsrun: |-- # Add the ONNX Runtime version and skip tests list to the archive to use in the ONNX Runtime Job- # w/o the need to checkout repository-- cp -R ${ONNX_RUNTIME_UTILS} ${INSTALL_DIR}-pushd ${INSTALL_DIR}tar -I pigz -cvf ${BUILD_DIR}/openvino_package.tar.gz *popddiff --git a/.github/workflows/job_onnx_runtime.yml b/.github/workflows/job_onnx_runtime.ymlindex 3a7bc4d53ef..61b13939fc6 100644--- a/.github/workflows/job_onnx_runtime.yml+++ b/.github/workflows/job_onnx_runtime.yml@@ -39,8 +39,9 @@ jobs:SCCACHE_SERVER_PORT: 35555SCCACHE_AZURE_KEY_PREFIX: ${{ inputs.sccache-azure-key-prefix }}ONNX_RUNTIME_REPO: ${{ github.workspace }}/onnxruntime- ONNX_RUNTIME_UTILS: ${{ github.workspace }}/install/onnxruntimeONNX_RUNTIME_BUILD_DIR: ${{ github.workspace }}/onnxruntime/build+ ONNX_RUNTIME_UTILS: ${{ github.workspace }}/openvino/src/frontends/onnx/tests/ci_utils/onnxruntime+steps:- name: Download OpenVINO packageuses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8@@ -51,10 +52,8 @@ jobs:# Needed as ${{ github.workspace }} is not working correctly when using Docker- name: Setup Variablesrun: |- echo "OPENVINO_REPO=$GITHUB_WORKSPACE/openvino" >> "$GITHUB_ENV"echo "INSTALL_DIR=$GITHUB_WORKSPACE/install" >> "$GITHUB_ENV"echo "ONNX_RUNTIME_REPO=$GITHUB_WORKSPACE/onnxruntime" >> "$GITHUB_ENV"- echo "ONNX_RUNTIME_UTILS=$GITHUB_WORKSPACE/install/onnxruntime" >> "$GITHUB_ENV"echo "ONNX_RUNTIME_BUILD_DIR=$GITHUB_WORKSPACE/onnxruntime/build" >> "$GITHUB_ENV"- name: Extract OpenVINO package@@ -62,14 +61,29 @@ jobs:pushd ${INSTALL_DIR}tar -I pigz -xf openvino_package.tar.gz -C ${INSTALL_DIR}popd-- - name: Clone ONNX Runtime++ - name: Fetch ONNX runtime version and skip tests list+ uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0+ with:+ sparse-checkout: |+ src/frontends/onnx/tests/ci_utils/onnxruntime+ sparse-checkout-cone-mode: false+ path: ${{ env.OPENVINO_REPO }}++ - name: Get ONNX runtime versionrun: |- hash=`tr -s '\n ' < ${ONNX_RUNTIME_UTILS}/version`- git clone --recursive https://github.com/microsoft/onnxruntime.git ${ONNX_RUNTIME_REPO}- cd ${ONNX_RUNTIME_REPO}- git checkout $hash-+ hash=`tr -s '\n ' < ./version`+ echo "ONNX_RUNTIME_VERSION=$hash" >> "$GITHUB_ENV"+ working-directory: ${{ env.ONNX_RUNTIME_UTILS }}++ - name: Clone ONNX Runtime+ uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0+ with:+ repository: 'microsoft/onnxruntime'+ path: ${{ env.ONNX_RUNTIME_REPO }}+ ref: ${{ env.ONNX_RUNTIME_VERSION }}+ submodules: 'recursive'+## Tests#