Skip to content

[Protopipe] EISW-225277 Add boolean type #45338

[Protopipe] EISW-225277 Add boolean type

[Protopipe] EISW-225277 Add boolean type #45338

Workflow file for this run

name: Clang-tidy static analysis (Ubuntu 24.04, Python 3.12, Clang-18, Clang-tidy-18)
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
merge_group:
push:
branches:
- master
- 'releases/**'
concurrency:
# github.ref is not unique in post-commit
group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-clang-tidy
cancel-in-progress: true
permissions: read-all
env:
RISCV_TOOLCHAIN_ROOT: /opt/riscv
jobs:
Smart_CI:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false || github.run_attempt > 1
outputs:
affected_components: "${{ steps.smart_ci.outputs.affected_components }}"
changed_components: "${{ steps.smart_ci.outputs.changed_components }}"
skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"
steps:
- name: checkout action
uses: ababushk/checkout@dd591a6a2ac25618db4eda86e7e0d938f88cf01b # cherry_pick_retries
timeout-minutes: 15
with:
sparse-checkout: .github/actions/smart-ci
- name: Get affected components
id: smart_ci
uses: ./.github/actions/smart-ci
with:
repository: ${{ github.repository }}
pr: ${{ github.event.number }}
commit_sha: ${{ github.sha }}
ref_name: ${{ github.ref_name }}
component_pattern: "category: (.*)"
repo_token: ${{ secrets.GITHUB_TOKEN }}
skip_when_only_listed_labels_set: 'docs'
skip_when_only_listed_files_changed: '*.md,*.rst,*.png,*.jpg,*.svg,*/layer_tests_summary/*,*/conformance/*,.github/workflows/ci-doctor.lock.yml,.github/workflows/ci-doctor-mq.lock.yml'
- name: Show affected components
run: |
echo "${{ toJSON(steps.smart_ci.outputs.affected_components) }}"
shell: bash
Docker:
needs: Smart_CI
runs-on: aks-linux-4-cores-16gb-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_24_04_x64\":\"mock\", \"ubuntu_22_04_arm64\":\"mock\", \"ubuntu_22_04_riscv_gnu\":\"mock\"}}" >> "$GITHUB_OUTPUT"
- name: Checkout
if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}
uses: ababushk/checkout@dd591a6a2ac25618db4eda86e7e0d938f88cf01b # cherry_pick_retries
timeout-minutes: 15
- uses: ./.github/actions/handle_docker
if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}
id: handle_docker
with:
images: |
ov_build/ubuntu_24_04_x64
ov_build/ubuntu_22_04_riscv
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_22_04_arm64\":\"mock\"}}" >> "$GITHUB_OUTPUT"
- name: Checkout
if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}
uses: ababushk/checkout@dd591a6a2ac25618db4eda86e7e0d938f88cf01b # cherry_pick_retries
timeout-minutes: 15
- uses: ./.github/actions/handle_docker
if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}
id: handle_docker
with:
images: |
ov_build/ubuntu_22_04_arm64
registry: 'openvinogithubactions.azurecr.io'
dockerfiles_root_dir: '.github/dockerfiles'
changed_components: ${{ needs.smart_ci.outputs.changed_components }}
Build-x86_64:
needs: [Docker, Smart_CI]
if: fromJSON(needs.smart_ci.outputs.affected_components).CPU && !needs.smart_ci.outputs.skip_workflow
uses: ./.github/workflows/job_clang_tidy.yml
with:
runner: aks-linux-16-cores-32gb
image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_24_04_x64 }}
cmake-generator: 'Ninja Multi-Config'
sccache-prefix: ubuntu24_x86_64_Release_itt_faster_build_clang_tidy
build-target: openvino_intel_cpu_plugin
compile-commands-artifact: compile_commands_clang_tidy_x86_64
build-extra-args: '--quiet -k 0'
Build-aarch64:
needs: [Docker_Arm, Smart_CI]
if: fromJSON(needs.smart_ci.outputs.affected_components).CPU && !needs.smart_ci.outputs.skip_workflow
uses: ./.github/workflows/job_clang_tidy.yml
with:
runner: aks-linux-16-cores-32gb-arm
image: ${{ fromJSON(needs.docker_arm.outputs.images).ov_build.ubuntu_22_04_arm64 }}
cmake-generator: 'Unix Makefiles'
sccache-prefix: ubuntu24_x86_64_Release_itt_faster_build_clang_tidy_aarch64
build-target: openvino_intel_cpu_plugin
compile-commands-artifact: compile_commands_clang_tidy_aarch64
# Unix Makefiles generator; keep going on errors (no --quiet until Ubuntu 24.04+).
cmake-extra-args: '-DCMAKE_RULE_MESSAGES=OFF'
build-extra-args: '-k'
Build-riscv64:
needs: [Docker, Smart_CI]
if: fromJSON(needs.smart_ci.outputs.affected_components).CPU && !needs.smart_ci.outputs.skip_workflow
uses: ./.github/workflows/job_clang_tidy.yml
with:
runner: aks-linux-16-cores-32gb
image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_riscv }}
cmake-generator: 'Unix Makefiles'
sccache-prefix: ubuntu24_x86_64_Release_itt_faster_build_clang_tidy_riscv64
build-target: openvino_intel_cpu_plugin
compile-commands-artifact: compile_commands_clang_tidy_riscv64
# RISC-V cross toolchain, sequential threading, Unix Makefiles generator.
cmake-extra-args: '-DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/riscv64.linux.toolchain.cmake -DCMAKE_RULE_MESSAGES=OFF -DTHREADING=SEQ'
build-extra-args: '-k'
show-sccache-stats: false
Build-gpu:
needs: [Docker, Smart_CI]
if: fromJSON(needs.smart_ci.outputs.affected_components).GPU && !needs.smart_ci.outputs.skip_workflow
uses: ./.github/workflows/job_clang_tidy.yml
with:
runner: aks-linux-16-cores-32gb
image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_24_04_x64 }}
cmake-generator: 'Ninja Multi-Config'
sccache-prefix: ubuntu24_x86_64_Release_itt_faster_build_clang_tidy_gpu
build-target: openvino_intel_gpu_plugin
compile-commands-artifact: compile_commands_clang_tidy_gpu_x86_64
cmake-extra-args: '-DENABLE_INTEL_GPU=ON'
build-extra-args: '--quiet -k 0'
Overall_Status:
name: ci/gha_overall_status_clang_tidy
needs: [Smart_CI, Build-x86_64, Build-aarch64, Build-riscv64, Build-gpu]
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Check status of all jobs
if: >-
${{
contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'cancelled')
}}
run: exit 1