diff --git a/.github/workflows/backend_build_darwin.yml b/.github/workflows/backend_build_darwin.yml index 29ea88b8e..217e82903 100644 --- a/.github/workflows/backend_build_darwin.yml +++ b/.github/workflows/backend_build_darwin.yml @@ -93,6 +93,10 @@ jobs: /opt/homebrew/Cellar/libomp /opt/homebrew/Cellar/llvm /opt/homebrew/Cellar/ccache + /opt/homebrew/Cellar/blake3 + /opt/homebrew/Cellar/hiredis + /opt/homebrew/Cellar/xxhash + /opt/homebrew/Cellar/zstd key: brew-${{ runner.os }}-${{ runner.arch }}-v1-${{ hashFiles('.github/workflows/backend_build_darwin.yml') }} - name: Dependencies @@ -100,13 +104,18 @@ jobs: # ccache is always installed (used by the llama-cpp variant build) so # the brew cache content stays stable across every backend in the # matrix — they all share one cache key. - brew install protobuf grpc make protoc-gen-go protoc-gen-go-grpc libomp llvm ccache + # blake3, hiredis, xxhash, zstd are ccache's runtime dylib deps. + # Without explicitly installing them, a brew cache-hit run restores + # ccache's Cellar dir but skips installing those transitive deps, + # and ccache fails at runtime with `dyld: Library not loaded: + # libblake3.0.dylib`. + brew install protobuf grpc make protoc-gen-go protoc-gen-go-grpc libomp llvm ccache blake3 hiredis xxhash zstd # The brew cache restores the Cellar dirs but NOT the bin symlinks # at /opt/homebrew/bin/*. brew install above sees the Cellar present # and decides "already installed" without re-linking, so on a cache- # hit run the formulas aren't on PATH. Force-link them; --overwrite # tolerates pre-existing symlinks from earlier installs. - brew link --overwrite protobuf grpc make protoc-gen-go protoc-gen-go-grpc libomp llvm ccache 2>/dev/null || true + brew link --overwrite protobuf grpc make protoc-gen-go protoc-gen-go-grpc libomp llvm ccache blake3 hiredis xxhash zstd 2>/dev/null || true - name: Save Homebrew cache if: github.event_name != 'pull_request' && steps.brew-cache.outputs.cache-hit != 'true' @@ -121,6 +130,10 @@ jobs: /opt/homebrew/Cellar/libomp /opt/homebrew/Cellar/llvm /opt/homebrew/Cellar/ccache + /opt/homebrew/Cellar/blake3 + /opt/homebrew/Cellar/hiredis + /opt/homebrew/Cellar/xxhash + /opt/homebrew/Cellar/zstd key: brew-${{ runner.os }}-${{ runner.arch }}-v1-${{ hashFiles('.github/workflows/backend_build_darwin.yml') }} # ---- ccache for llama.cpp CMake builds ----