LocalAI/.github/workflows
Ettore Di Giacinto 9a7f5e68bd ci(darwin): add native caches to backend_build_darwin
macOS runners can't use the registry-backed BuildKit cache (no Docker
daemon), so every darwin matrix run was paying full cost for brew
installs, Go module downloads, llama.cpp recompiles and Python wheel
resolution.

Wires actions/cache@v4 into the reusable workflow for four caches:

- Go modules + build cache (setup-go cache: true), shared across matrix
- Homebrew downloads + selected /opt/homebrew/Cellar entries, with
  HOMEBREW_NO_AUTO_UPDATE so restored Cellar paths stay stable
- ccache for the llama-cpp CMake variants, keyed on the pinned
  LLAMA_VERSION; CMAKE_*_COMPILER_LAUNCHER is exported via GITHUB_ENV
  so backend/cpp/llama-cpp/Makefile picks it up without script changes
- Python uv + pip wheel cache, keyed by backend + ISO week — same
  one-cold-rebuild-per-week cadence as the Linux DEPS_REFRESH

Read/write semantics match the existing BuildKit policy: every run
restores, only master/tag pushes save, so PRs can't pollute master's
warm cache.

Documents the new caches and the macOS-specific constraints in
.agents/ci-caching.md.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Assisted-by: Claude:claude-opus-4-7[1m] [Claude Code]
2026-04-27 20:17:36 +00:00
..
disabled chore(ci): disable CI actions 2026-03-02 14:48:00 +01:00
backend.yml [intel GPU support] Use latest oneapi-basekit image for Intel images to support b70 (in more places this time) (#9578) 2026-04-27 09:18:57 +02:00
backend_build.yml ci(python-backends): add weekly DEPS_REFRESH cache-buster 2026-04-27 14:21:11 +00:00
backend_build_darwin.yml ci(darwin): add native caches to backend_build_darwin 2026-04-27 20:17:36 +00:00
backend_pr.yml Change runner from macOS-14 to macos-latest 2025-12-13 10:11:27 +01:00
build-test.yaml chore(deps): bump actions/upload-artifact from 6 to 7 (#8730) 2026-03-02 21:43:39 +01:00
bump-inference-defaults.yml chore(deps): bump peter-evans/create-pull-request from 7 to 8 (#9114) 2026-03-24 08:50:50 +01:00
bump_deps.yaml feat(backend): add turboquant llama.cpp-fork backend (#9355) 2026-04-15 01:25:04 +02:00
bump_docs.yaml fix(api)!: Stop model prior to deletion (#8422) 2026-02-06 09:22:10 +01:00
checksum_checker.yaml fix(api)!: Stop model prior to deletion (#8422) 2026-02-06 09:22:10 +01:00
deploy-explorer.yaml fix(api)!: Stop model prior to deletion (#8422) 2026-02-06 09:22:10 +01:00
gallery-agent.yaml Change cron schedule to run every 12 hours 2026-04-25 18:38:28 +02:00
generate_intel_image.yaml [intel GPU support] Use latest oneapi-basekit image for Intel images to support b70 (#9543) 2026-04-24 18:29:10 +02:00
gh-pages.yml chore(deps): bump actions/upload-pages-artifact from 4 to 5 (#9337) 2026-04-13 21:53:47 +02:00
image-pr.yml ci: switch image/backend build cache to a dedicated registry image 2026-04-27 13:13:04 +00:00
image.yml ci: switch image/backend build cache to a dedicated registry image 2026-04-27 13:13:04 +00:00
image_build.yml ci: switch image/backend build cache to a dedicated registry image 2026-04-27 13:13:04 +00:00
notify-releases.yaml fix(api)!: Stop model prior to deletion (#8422) 2026-02-06 09:22:10 +01:00
release.yaml chore(deps): bump softprops/action-gh-release from 2 to 3 (#9336) 2026-04-13 21:53:28 +02:00
secscan.yaml Revert "chore(deps): bump securego/gosec from 2.22.9 to 2.22.11" (#7789) 2025-12-30 09:58:13 +01:00
stalebot.yml chore(deps): bump actions/stale from 10.1.1 to 10.2.0 (#8633) 2026-02-23 23:27:20 +01:00
test-extra.yml feat: Add Sherpa ONNX backend for ASR and TTS (#8523) 2026-04-24 14:40:06 +02:00
test.yml ci: switch image/backend build cache to a dedicated registry image 2026-04-27 13:13:04 +00:00
tests-e2e.yml feat(realtime): WebRTC support (#8790) 2026-03-13 21:37:15 +01:00
tests-ui-e2e.yml chore(deps): bump actions/upload-artifact from 4 to 7 (#9030) 2026-03-17 11:42:49 +01:00
update_swagger.yaml fix(api)!: Stop model prior to deletion (#8422) 2026-02-06 09:22:10 +01:00
yaml-check.yml chore(backend gallery): add description for remaining backends (#5679) 2025-06-17 22:21:44 +02:00