]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ci : only save openvino caches on github-hosted master (#20593)
authorSigbjørn Skjæret <redacted>
Sun, 15 Mar 2026 17:58:13 +0000 (18:58 +0100)
committerGitHub <redacted>
Sun, 15 Mar 2026 17:58:13 +0000 (18:58 +0100)
* only save openvino ccache on master

* disable toolkit cache if self-hosted

* only cache on github-hosted runners

* remove toolkit cache [no ci]

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

index eba06b96bc40bce9328a8aace45ceff5ce6138b7..7c7710fe453c5e70e72c7642746e0a0206b50cbe 100644 (file)
@@ -222,15 +222,7 @@ jobs:
         id: checkout
         uses: actions/checkout@v6
 
-      - name: Use OpenVINO Toolkit Cache
-        uses: actions/cache@v5
-        id: cache-openvino
-        with:
-          path: ./openvino_toolkit
-          key: openvino-toolkit-v${{ env.OPENVINO_VERSION_FULL }}-${{ runner.os }}
-
       - name: Setup OpenVINO Toolkit
-        if: steps.cache-openvino.outputs.cache-hit != 'true'
         uses: ./.github/actions/linux-setup-openvino
         with:
           path: ./openvino_toolkit
index b60ad993b8e4282b391b5e79923738c0e701ebb1..fef08d4c00c5fbedf939ed8df8c07c9ce545d125 100644 (file)
@@ -604,10 +604,12 @@ 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
             evict-old-files: 1d
+            save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
 
         - name: Dependencies
           id: depends
@@ -617,6 +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: runner.environment == 'github-hosted'
           uses: actions/cache@v5
           id: cache-openvino
           with: