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] changed cache naming (#26792)
Mikhail Ryzhovcdf78542bc75
diff --git a/.github/workflows/job_build_windows.yml b/.github/workflows/job_build_windows.ymlindex bd6d6074382..66301cee1f1 100644--- a/.github/workflows/job_build_windows.yml+++ b/.github/workflows/job_build_windows.yml@@ -13,13 +13,16 @@ on:description: 'OpenVINO build type, e.g., "Release"'type: stringrequired: true+ target-branch:+ description: 'Target branch for the build'+ type: string+ required: truepermissions: read-allenv:PIP_CACHE_PATH: /mount/caches/pip/winPYTHON_VERSION: '3.11'- TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}jobs:Build:@@ -33,7 +36,7 @@ jobs:CMAKE_GENERATOR: 'Ninja Multi-Config'CMAKE_CXX_COMPILER_LAUNCHER: ccacheCMAKE_C_COMPILER_LAUNCHER: ccache- CCACHE_REMOTE_DIR: ""+ CCACHE_REMOTE_DIR: C:\\mount\\caches\\ccache\\windows2022_x86_64_${{ inputs.build-type }}\\${{ inputs.target-branch }}CCACHE_DIR: ${{ github.workspace }}\\ccacheCCACHE_MAXSIZE: 3GOPENVINO_REPO: "${{ github.workspace }}\\openvino"@@ -57,22 +60,7 @@ jobs:with:repository: 'openvinotoolkit/openvino_contrib'path: 'openvino_contrib'- ref: ${{ env.TARGET_BRANCH }}-- - name: Set CCACHE_REMOTE_DIR based on event- shell: bash- run: |- final_dir=""- if [[ "${{ github.event_name }}" == "merge_group" ]]; then- branch_ref="${{ github.event.merge_group.base_ref }}" # Resolves into "refs/heads/master"- final_dir="${branch_ref##*/}" # Resolves into "master"- elif [[ "${{ github.event_name }}" == "pull_request" ]]; then- final_dir="${{ github.base_ref }}" # Resolves into "master"- else- final_dir="${{ github.ref_name }}" # Resolves into "master"- fi-- echo "CCACHE_REMOTE_DIR=C:\\\mount\\\caches\\\ccache\\\windows2022_x86_64_${{ inputs.build-type }}\\\\${final_dir}" >> $GITHUB_ENV+ ref: ${{ inputs.target-branch }}- name: Setup Python ${{ env.PYTHON_VERSION }}uses: ./openvino/.github/actions/setup_pythondiff --git a/.github/workflows/linux_riscv.yml b/.github/workflows/linux_riscv.ymlindex f124aae2e60..f67b011b0ca 100644--- a/.github/workflows/linux_riscv.yml+++ b/.github/workflows/linux_riscv.yml@@ -15,6 +15,9 @@ concurrency:permissions: read-all+env:+ TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}+jobs:Smart_CI:runs-on: ubuntu-latest@@ -22,6 +25,7 @@ jobs:affected_components: "${{ steps.smart_ci.outputs.affected_components }}"changed_components: "${{ steps.smart_ci.outputs.changed_components }}"skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"+ target_branch: ${{ steps.set_target_branch.outputs.target_branch }}steps:- name: checkout actionuses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0@@ -40,6 +44,12 @@ jobs: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/*'++ - name: Get target branch+ id: set_target_branch+ run: |+ echo "target_branch=${TARGET_BRANCH#refs/heads/}" >> $GITHUB_OUTPUT+ shell: bashDocker:needs: Smart_CI@@ -84,7 +94,7 @@ jobs:OPENVINO_BUILD_DIR: /__w/openvino/openvino/openvino_buildINSTALL_DIR: /__w/openvino/openvino/openvino_installCONAN_USER_HOME: /mount/caches/ccache/ubuntu22_riscv64_master_release/.conan- CCACHE_REMOTE_DIR: /mount/caches/ccache/ubuntu22_riscv64/${{ github.base_ref || github.ref_name }}+ CCACHE_REMOTE_DIR: /mount/caches/ccache/ubuntu22_riscv64/${{ needs.Smart_CI.outputs.target_branch }}CCACHE_DIR: /__w/openvino/openvino/ccacheCCACHE_TEMPDIR: /__w/openvino/openvino/ccache_tempCCACHE_MAXSIZE: 2G@@ -102,7 +112,7 @@ jobs:- name: System infouses: ./openvino/.github/actions/system_info-+- name: Setup ccacheid: ccache_restoreuses: ./openvino/.github/actions/cachediff --git a/.github/workflows/windows_vs2019_debug.yml b/.github/workflows/windows_vs2019_debug.ymlindex 0c0cec15a8c..03126b500cd 100644--- a/.github/workflows/windows_vs2019_debug.yml+++ b/.github/workflows/windows_vs2019_debug.yml@@ -13,12 +13,16 @@ concurrency:permissions: read-all+env:+ TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}+jobs:Smart_CI:runs-on: ubuntu-latestoutputs:affected_components: "${{ steps.smart_ci.outputs.affected_components }}"skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"+ target_branch: ${{ steps.set_target_branch.outputs.target_branch }}steps:- name: checkout actionuses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0@@ -37,6 +41,11 @@ jobs: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/*'++ - name: Get target branch+ id: set_target_branch+ run: |+ echo "target_branch=${TARGET_BRANCH#refs/heads/}" >> $GITHUB_OUTPUTBuild:needs: [ Smart_CI ]@@ -46,6 +55,7 @@ jobs:runner: 'aks-win-16-cores-32gb'affected-components: ${{ needs.smart_ci.outputs.affected_components }}build-type: 'Debug'+ target-branch: ${{ needs.smart_ci.outputs.target_branch }}CXX_Unit_Tests:name: C++ unit testsdiff --git a/.github/workflows/windows_vs2019_release.yml b/.github/workflows/windows_vs2019_release.ymlindex 59e2fdd56de..7b368b99b98 100644--- a/.github/workflows/windows_vs2019_release.yml+++ b/.github/workflows/windows_vs2019_release.yml@@ -13,6 +13,7 @@ concurrency:cancel-in-progress: trueenv:+ TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }}PIP_CACHE_PATH: /mount/caches/pip/winPYTHON_VERSION: '3.11'@@ -24,6 +25,7 @@ jobs:outputs:affected_components: "${{ steps.smart_ci.outputs.affected_components }}"skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"+ target_branch: ${{ steps.set_target_branch.outputs.target_branch }}steps:- name: checkout actionuses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0@@ -42,6 +44,11 @@ jobs: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/*'++ - name: Get target branch+ id: set_target_branch+ run: |+ echo "target_branch=${TARGET_BRANCH#refs/heads/}" >> $GITHUB_OUTPUTBuild:needs: [ Smart_CI ]@@ -51,6 +58,7 @@ jobs:runner: 'aks-win-16-cores-32gb'affected-components: ${{ needs.smart_ci.outputs.affected_components }}build-type: 'Release'+ target-branch: ${{ needs.smart_ci.outputs.target_branch }}Samples:needs: [ Build, Smart_CI ]