only cache on github-hosted runners

This commit is contained in:
Sigbjørn Skjæret 2026-03-15 16:07:22 +01:00 committed by GitHub
parent e7782a8bf2
commit caaf4efe89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -604,6 +604,7 @@ jobs:
uses: actions/checkout@v6
- name: ccache
if: runner.environment == 'github-hosted'
uses: ggml-org/ccache-action@v1.2.16
with:
key: ubuntu-24-openvino-${{ matrix.variant }}-no-preset-v1
@ -618,7 +619,7 @@ jobs:
sudo apt-get install -y ocl-icd-opencl-dev opencl-headers opencl-clhpp-headers intel-opencl-icd
- name: Use OpenVINO Toolkit Cache
if: ${{ !contains(fromJSON(matrix.runner), 'self-hosted') }}
if: runner.environment == 'github-hosted'
uses: actions/cache@v5
id: cache-openvino
with: