Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[GHA] Fix Docker builds in clang tidy workflow (#31277)

Alina Kladieva22e18874e930
diff --git a/.github/workflows/clang_tidy.yml b/.github/workflows/clang_tidy.yml
index 6c344aca526..e3ed8c78c69 100644
--- a/.github/workflows/clang_tidy.yml
+++ b/.github/workflows/clang_tidy.yml
@@ -63,7 +63,7 @@ jobs:
- name: Set mock output images if pipeline should be skipped
if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}
id: mock_image
- run: echo "images={\"ov_build\":{\"ubuntu_24_04_x64\":\"mock\", \"ubuntu_20_04_arm64\":\"mock\", \"ubuntu_22_04_riscv_xuantie\":\"mock\"}}" >> "$GITHUB_OUTPUT"
+ run: echo "images={\"ov_build\":{\"ubuntu_24_04_x64\":\"mock\", \"ubuntu_22_04_riscv_xuantie\":\"mock\"}}" >> "$GITHUB_OUTPUT"
- name: Checkout
if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}
@@ -76,12 +76,41 @@ jobs:
with:
images: |
ov_build/ubuntu_24_04_x64
- ov_build/ubuntu_20_04_arm64
ov_build/ubuntu_22_04_riscv_xuantie
registry: 'openvinogithubactions.azurecr.io'
dockerfiles_root_dir: '.github/dockerfiles'
changed_components: ${{ needs.smart_ci.outputs.changed_components }}
+ Docker_Arm:
+ needs: Smart_CI
+ runs-on: aks-linux-4-cores-8gb-arm-docker-build
+ container:
+ image: openvinogithubactions.azurecr.io/docker_build:0.2
+ volumes:
+ - /mount:/mount
+ outputs:
+ images: "${{ steps.handle_docker.outputs.images }}"
+ steps:
+ - name: Set mock output images if pipeline should be skipped
+ if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}
+ id: mock_image
+ run: echo "images={\"ov_build\":{\"ubuntu_20_04_arm64\":\"mock\"}}" >> "$GITHUB_OUTPUT"
+
+ - name: Checkout
+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ timeout-minutes: 15
+
+ - uses: ./.github/actions/handle_docker
+ if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}
+ id: handle_docker
+ with:
+ images: |
+ ov_build/ubuntu_20_04_arm64
+ registry: 'openvinogithubactions.azurecr.io'
+ dockerfiles_root_dir: '.github/dockerfiles'
+ changed_components: ${{ needs.smart_ci.outputs.changed_components }}
+
Build:
needs: [Docker, Smart_CI]
if: "!needs.smart_ci.outputs.skip_workflow"
@@ -150,7 +179,7 @@ jobs:
run: ${SCCACHE_PATH} --show-stats
Build-aarch64:
- needs: [Docker, Smart_CI]
+ needs: [Docker_Arm, Smart_CI]
if: "!needs.smart_ci.outputs.skip_workflow"
timeout-minutes: 150
defaults:
@@ -158,7 +187,7 @@ jobs:
shell: bash
runs-on: aks-linux-16-cores-32gb-arm
container:
- image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_20_04_arm64 }}
+ image: ${{ fromJSON(needs.docker_arm.outputs.images).ov_build.ubuntu_20_04_arm64 }}
volumes:
- /mount:/mount
options: -e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING