]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ci : add ccache to server builds + fix undefined sanitizer build (#23763)
authorGeorgi Gerganov <redacted>
Wed, 27 May 2026 08:45:12 +0000 (11:45 +0300)
committerGitHub <redacted>
Wed, 27 May 2026 08:45:12 +0000 (11:45 +0300)
* ci : fix undefined sanitizer build to use Debug build type only

* ci : ccache the server builds

* cont : remove ui dependency + reuse ccache for both ubuntu jobs

* tmp : force ccache save

* Revert "tmp : force ccache save"

This reverts commit a857b03a10b1304d456129a017e0e46b185618ee.

* cont : no need for node.js

.github/workflows/build-sanitize.yml
.github/workflows/server.yml

index 2870733801399650067dbcf598c39fe0863db983..916560b84f9f2a4296a6fcae99162172c126c7aa 100644 (file)
@@ -69,7 +69,7 @@ jobs:
 
       - name: Build
         id: cmake_build
-        if: ${{ matrix.sanitizer != 'THREAD' }}
+        if: ${{ matrix.sanitizer == 'ADDRESS' }}
         run: |
           cmake -B build \
             -DCMAKE_BUILD_TYPE=RelWithDebInfo \
index 5e28c6d9e2a11f12e30fc47ae3a6a1e4e04ae9cb..121ae1eb278252cfc25ace84aecf78bb7b4207c6 100644 (file)
@@ -54,13 +54,8 @@ concurrency:
   cancel-in-progress: true
 
 jobs:
-  ui-build:
-    name: Build Web UI
-    uses: ./.github/workflows/ui-build.yml
-
   server:
     runs-on: ubuntu-latest
-    needs: ui-build
 
     name: server (${{ matrix.wf_name }})
     strategy:
@@ -98,17 +93,17 @@ jobs:
           fetch-depth: 0
           ref: ${{ github.event.inputs.sha || github.event.pull_request.head.sha || github.sha || github.head_ref || github.ref_name }}
 
-      - name: Download built UI
-        uses: actions/download-artifact@v7
+      - name: ccache
+        uses: ggml-org/ccache-action@v1.2.21
         with:
-          name: ui-build
-          path: tools/ui/dist
+          key: server-ubuntu-default
+          evict-old-files: 1d
+          save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
 
       - name: Build
         id: cmake_build
         run: |
           cmake -B build \
-            -DLLAMA_BUILD_BORINGSSL=ON \
             -DGGML_SCHED_NO_REALLOC=ON
           cmake --build build --config ${{ matrix.build_type }} -j $(nproc) --target llama-server
 
@@ -146,10 +141,12 @@ jobs:
           fetch-depth: 0
           ref: ${{ github.event.inputs.sha || github.event.pull_request.head.sha || github.sha || github.head_ref || github.ref_name }}
 
-      - name: Setup Node.js
-        uses: actions/setup-node@v6
+      - name: ccache
+        uses: ggml-org/ccache-action@v1.2.21
         with:
-          node-version: "24"
+          key: server-windows-default
+          evict-old-files: 1d
+          save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
 
       - name: Build
         id: cmake_build