Cache
Cache settings to speed up the build
Activates caching content that does not often change in order to speed up the build process.
There are built-in caching strategies for apt, bundler, cargo, ccache, cocoapods, npm, packages, pip, yarn. For other scenarios the generic directory option can be used.
See also
Types
Keys
If given a map, the following keys are supported:
directories— Generic directory caching strategy (type: sequence of string, or string, e.g.:./path)apt— Use the apt caching strategy (type: boolean)bundler— Use the bundler caching strategy (type: boolean)cargo— Use the cargo caching strategy (type: boolean)ccache— Use the ccache caching strategy (type: boolean)cocoapods— Use the cocoapods caching strategy (type: boolean)npm— Use the npm caching strategy (type: boolean)packages— Use the packages caching strategy (type: boolean)pip— Use the pip caching strategy (type: boolean)yarn— Use the yarn caching strategy (type: boolean)timeout— Timeout for the cache tooling (type: number)edge— Use an edge version of the cache tooling (type: boolean)branch— (type: string)
Examples
cache:
directories:
- "./path"
apt: true
bundler: true
cache: false