Skip to main content
Point your build tools at TENSORLAKE_CACHE_DIR to reuse dependencies and build outputs across workflow runs.

Configure a cache directory

Set your tool’s cache directory before building. For Rust, write CARGO_TARGET_DIR to GITHUB_ENV:
Use these variables for other tools: No actions/cache step is needed. See the complete language workflow examples.

Cache scope and persistence

Jobs and branches share a cache within the same project, GitHub connection, and repository. Use tool-supported locking or separate directories for concurrent writers, and keep secrets out of the cache. Cache changes persist after a job finishes; forced termination can discard recent writes. Use GitHub artifacts for outputs you need to keep.