Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(ci): cap sidecar build parallelism and shorten Windows llama build path

purpleff095585e345
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 13545658..de8ab085 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -131,6 +131,17 @@ jobs:
- name: Build llama-server sidecar
shell: bash
+ env:
+ # Cap parallelism: bare `-j` (unlimited) OOM-kills the Linux runner mid
+ # llama.cpp.o compile (SIGTERM 143). 2 fits every hosted runner's RAM.
+ BUILD_JOBS: 2
+ # Windows only: the vulkan-shaders-gen ExternalProject nests build paths
+ # ~250 chars deep under the workspace, tripping MSBuild FileTracker
+ # (FTK1011, MAX_PATH) so the CMake compiler check "is broken". Relocate
+ # the llama build to a short root ('D:/lb') so the deepest TryCompile
+ # .tlog path stays under 260. Empty elsewhere -> the script falls back
+ # to ./.llama-build (which the sidecar cache step handles).
+ LLAMA_BUILD_CACHE: ${{ matrix.platform == 'windows-latest' && 'D:/lb' || '' }}
run: bash scripts/build-llama.sh ${{ matrix.sidecar_triple }}
- name: Assert sidecar exists
diff --git a/scripts/build-llama.sh b/scripts/build-llama.sh
index dc8a3f86..df158a67 100755
--- a/scripts/build-llama.sh
+++ b/scripts/build-llama.sh
@@ -109,7 +109,10 @@ build_triple() {
# shellcheck disable=SC2086
cmake -S "$SRC_DIR" -B "$build_dir" $flags
log "building llama-server for $triple"
- cmake --build "$build_dir" --config Release --target llama-server -j
+ # Bare `-j` (no count) lets Make fork a compile per ready target and OOM-kills
+ # CI runners mid llama.cpp.o (SIGTERM 143). Cap to a finite, memory-safe count;
+ # CI lowers it further via BUILD_JOBS=2.
+ cmake --build "$build_dir" --config Release --target llama-server -j "${BUILD_JOBS:-4}"
# Locate the produced binary (path differs by generator/platform).
local built
built="$(find "$build_dir" -type f \( -name 'llama-server' -o -name 'llama-server.exe' \) -print -quit)"