Skip to content

Commit b91d7df

Browse files
authored
ci : only save openvino caches on github-hosted master (ggml-org#20593)
* only save openvino ccache on master * disable toolkit cache if self-hosted * only cache on github-hosted runners * remove toolkit cache [no ci]
1 parent ae40cd2 commit b91d7df

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/build-self-hosted.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -222,15 +222,7 @@ jobs:
222222
id: checkout
223223
uses: actions/checkout@v6
224224

225-
- name: Use OpenVINO Toolkit Cache
226-
uses: actions/cache@v5
227-
id: cache-openvino
228-
with:
229-
path: ./openvino_toolkit
230-
key: openvino-toolkit-v${{ env.OPENVINO_VERSION_FULL }}-${{ runner.os }}
231-
232225
- name: Setup OpenVINO Toolkit
233-
if: steps.cache-openvino.outputs.cache-hit != 'true'
234226
uses: ./.github/actions/linux-setup-openvino
235227
with:
236228
path: ./openvino_toolkit

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,10 +604,12 @@ jobs:
604604
uses: actions/checkout@v6
605605

606606
- name: ccache
607+
if: runner.environment == 'github-hosted'
607608
uses: ggml-org/ccache-action@v1.2.16
608609
with:
609610
key: ubuntu-24-openvino-${{ matrix.variant }}-no-preset-v1
610611
evict-old-files: 1d
612+
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
611613

612614
- name: Dependencies
613615
id: depends
@@ -617,6 +619,7 @@ jobs:
617619
sudo apt-get install -y ocl-icd-opencl-dev opencl-headers opencl-clhpp-headers intel-opencl-icd
618620
619621
- name: Use OpenVINO Toolkit Cache
622+
if: runner.environment == 'github-hosted'
620623
uses: actions/cache@v5
621624
id: cache-openvino
622625
with:

0 commit comments

Comments
 (0)