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.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(ci): key the llama sidecar cache on LU's llama.cpp patches too
purple5af72b4fe18c
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex b2e3842c..fed8db26 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -41,8 +41,10 @@ permissions:## Sidecar: every platform must build the bundled llama.cpp `llama-server`# BEFORE tauri-action runs — tauri-build hard-fails on a missing externalBin.-# The build is cached on (hash of scripts/build-llama.sh × triple); it only-# recompiles when the script (tag pin or cmake flags) changes.+# The build is cached on (hash of scripts/build-llama.sh and LU's llama.cpp+# patches in scripts/llama-patches × triple); it only recompiles when the+# script (tag pin or cmake flags) or a patch changes. A patch outside the key+# would hit the old cache and stop in assert_patched_tree (E1).env:# Vulkan SDK pin for the GGML_VULKAN sidecar builds: the Windows lane uses# the full installer version, the Linux lane derives the 3-part family for@@ -316,7 +318,7 @@ jobs:# ./.llama-build while the real build sits in D:/lb — every run then# recompiles llama.cpp from scratch (~20 min) on a "cache hit".path: ${{ matrix.platform == 'windows-latest' && 'D:/lb' || '.llama-build' }}- key: llama-${{ hashFiles('scripts/build-llama.sh') }}-${{ matrix.sidecar_triple }}-v1+ key: llama-${{ hashFiles('scripts/build-llama.sh', 'scripts/llama-patches/**') }}-${{ matrix.sidecar_triple }}-v1- name: Install Vulkan SDK (Windows)if: matrix.platform == 'windows-latest'@@ -1314,7 +1316,7 @@ jobs:path: .llama-build# The deployment target is part of the key: a cached binary built# for another minimum OS must not be reused.- key: llama-${{ hashFiles('scripts/build-llama.sh') }}-aarch64-apple-darwin-min${{ env.MACOSX_DEPLOYMENT_TARGET }}-v1+ key: llama-${{ hashFiles('scripts/build-llama.sh', 'scripts/llama-patches/**') }}-aarch64-apple-darwin-min${{ env.MACOSX_DEPLOYMENT_TARGET }}-v1- name: Build llama-server sidecarshell: bashdiff --git a/.github/workflows/sidecar-windows.yml b/.github/workflows/sidecar-windows.ymlindex 1c882048..974dddf7 100644--- a/.github/workflows/sidecar-windows.yml+++ b/.github/workflows/sidecar-windows.yml@@ -1,18 +1,21 @@name: Windows sidecar build + boot smoke# Proves the bundled llama.cpp sidecar builds and BOOTS on Windows without-# waiting for a full release: runs when the build script (or this workflow)-# changes, weekly against runner-image drift, and on demand. The GGML Vulkan-# build keeps its CPU backend, so /health comes up on the GPU-less runner.+# waiting for a full release: runs when the build script, LU's llama.cpp+# patches (or this workflow) change, weekly against runner-image drift, and+# on demand. The GGML Vulkan build keeps its CPU backend, so /health comes up+# on the GPU-less runner.on:push:branches: [master]paths:- 'scripts/build-llama.sh'+ - 'scripts/llama-patches/**'- '.github/workflows/sidecar-windows.yml'pull_request:paths:- 'scripts/build-llama.sh'+ - 'scripts/llama-patches/**'- '.github/workflows/sidecar-windows.yml'schedule:- cron: '17 4 * * 1' # Mondays 04:17 UTC@@ -62,7 +65,7 @@ jobs:uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0with:path: D:/lb- key: llama-${{ hashFiles('scripts/build-llama.sh') }}-x86_64-pc-windows-msvc-v1+ key: llama-${{ hashFiles('scripts/build-llama.sh', 'scripts/llama-patches/**') }}-x86_64-pc-windows-msvc-v1- name: Install Vulkan SDKshell: pwshdiff --git a/src/api/__tests__/build-llama-script.test.ts b/src/api/__tests__/build-llama-script.test.tsindex 675ac63c..7361c37b 100644--- a/src/api/__tests__/build-llama-script.test.ts+++ b/src/api/__tests__/build-llama-script.test.ts@@ -486,10 +486,24 @@ describe('build-llama.sh — the llama.cpp revision is pinned to a commit', { ticonst keys = text.match(/^\s*key:\s*.*llama.*$/gm) ?? []expect(keys.length, `${workflow} has no llama cache key`).toBeGreaterThan(0)for (const key of keys) {- expect(key, workflow).toContain("hashFiles('scripts/build-llama.sh')")+ expect(key, workflow).toContain("hashFiles('scripts/build-llama.sh', 'scripts/llama-patches/**')")}}})++ it("keys the cache and the Windows smoke on LU's llama.cpp patches as well (E1)", () => {+ // The patches change the compiled tree without touching this script. Left+ // out of the key, a patch change hits the old cache (assert_patched_tree+ // then stops the build); left out of the path filter, the Windows smoke+ // does not run for it at all.+ const text = readFileSync(resolve(REPO_ROOT, '.github/workflows/sidecar-windows.yml'), 'utf8')+ const filters = text.match(/^\s*paths:\n(?:\s*-\s*'[^']+'\n)+/gm) ?? []+ expect(filters.length).toBe(2)+ for (const filter of filters) {+ expect(filter).toContain("- 'scripts/build-llama.sh'")+ expect(filter).toContain("- 'scripts/llama-patches/**'")+ }+ })})/**