Dedicated caching Steps for dependency managers
Bitrise's dedicated caching Steps store their archives in the same storage space as the Save cache and Restore cache Steps but unlike those two, they automatically set up the appropriate cache paths and cache keys and as such, they require no configuration.
Key-based caching is powerful and flexible: you can use the Save cache and Restore cache Steps with any app, regardless of platform or the type of data you want to cache. However, these Steps require careful configuration and it is possible to make mistakes. If you are looking for a simple solution to cache dependencies of the most frequently used dependency managers, we offer dedicated Steps that require no configuration whatsoever.
The dedicated caching Steps store their archives in the same storage space as the Save cache and Restore cache Steps but unlike those two, they automatically set up the appropriate cache paths and cache keys.
The following dedicated Steps are available:
-
Save Cocoapods Cache and Restore Cocoapods Cache: Caching CocoaPods dependencies.
-
Save SPM Cache and Restore SPM Cache: Caching Swift packages.
-
Save NPM Cache and Restore NPM Cache: Caching npm and Yarn dependencies.
-
Save Gradle Cache and Restore Gradle Cache: Caching Gradle dependencies.
-
Save Carthage Cache and Restore Carthage Cache: Caching Carthage dependencies.
-
Save Dart Cache and Restore Dart Cache: Caching dependencies for Flutter apps.
To use these Steps, simply add the Restore version to the start of your Workflow and the Save version to the end of your Workflow. No other configuration is needed.