Skip to content
/ cache Public

A backend-agnostic solution to add support for caching to your scripts

License

Notifications You must be signed in to change notification settings

tuist/cache

Repository files navigation

cache

cache is a specification and a CLI for adding caching to your scripts. It's useful to weaken the dependency on CI providers' caching capabilities, and share caching artifacts across environments. Its design draws inspiration from usage, which allows defining a CLI interface in scripts using comments.

Usage

First, cache using Mise running mise use -g ubi:tuist/cache@latest.

Then adjust your script shebang to use the cache CLI and then configure the caching using comments:

#!/usr/bin/env cache bash
# CACHE paths [".build"]
# CACHE key ""
# CACHE restore_keys []

swift build

Development

Set up

  1. Clone the repository: git clone [email protected]:tuist/cache.git
  2. Install the dependencies: mise install.
  3. Dev the project: mise run dev

References

About

A backend-agnostic solution to add support for caching to your scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published