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:
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
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