Dedicated caching Steps for dependency managers
Key-based caching is powerful and flexible: you can use the Save cache and Restore cache Steps with any project, 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: Managing dependencies with CocoaPods.
- Save SPM Cache and Restore SPM Cache: Managing dependencies with SPM.
- Save NPM Cache and Restore NPM Cache: React Native dependencies.
- Save Gradle Cache and Restore Gradle Cache: Android dependencies.
- Save Carthage Cache and Restore Carthage Cache: Managing dependencies with Carthage.
- Save Dart Cache and Restore Dart Cache: Flutter dependencies.
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.