Keep your compiler launcher
Your existing build setup keeps compiler and launcher selection. BoringCache adds the remote-cache storage path and safe read and write behavior.
Getting started
Guides
On this page
Docs / Adapter commands / ccache
Keep ccache in your existing compiler path. The adapter adds shared remote storage, safe read and write behavior, and native statistics.
Your existing build setup keeps compiler and launcher selection. BoringCache adds the remote-cache storage path and safe read and write behavior.
A fresh runner can read compiler results published by a trusted CI or local build when ccache's own keys match.
Keep ccache's own compile requests, remote hits, misses, timeouts, and errors visible.
Configure ccache as the compiler launcher in the project, keep the tag and build command in .boringcache.toml, then use boringcache ccache locally or mode: ccache in BoringCache One. The adapter does not rewrite CC or CXX.
[adapters.ccache] tag = "cpp-cache" command = ["cmake", "--build", "build"] # Keep CMAKE_C_COMPILER_LAUNCHER=ccache # and CMAKE_CXX_COMPILER_LAUNCHER=ccache in the project. # Run: boringcache ccache
The Action prepares remote ccache storage for later workflow steps. Keep compiler and launcher selection in your existing build setup.
- uses: boringcache/one@f0fb9b2d926a32b10c543e92093ba00c5a291b79 # v1.33.0 with: trust-policy: auto mode: ccache - run: cmake --build build
Approve the repository through Connect CI and grant the job contents: read and id-token: write. The Action uses that Machine connection. Pull requests restore by default; trusted jobs may publish. See the authentication example in the GitHub Actions reference for scoped credentials when OIDC is unavailable.
OBS Studio · 447 of 578 compiler requests reused.
77%
447 of 578 compiler requests hit the shared cache in an OBS Studio build.
Open run →Check the tool's own reference when you need cache-key rules, build settings, or version-specific behavior.
Compare every supported command, protocol, and Action mode in one place.
Adapter command index →Need help or found something unclear? Open an issue or browse the CLI repo.
We use cookies to understand how people use BoringCache. Learn more