Cache the contents of the Dart pub system cache folder with the new key-based caching Steps, Save Dart Cache and Restore Dart Cache.
- Add the Restore Dart Cache Step to the Workflow.
- Add one of Flutter Steps to the workflow, such as Flutter Build
- Add the Save Dart Cache Step.
The Dart specific cache steps use optimal cache key and path configurations maintained by Bitrise. If you want full control over what should be cached then please check out the generic Restore Cache and Save Cache Steps.
You can always check out what key and path settings the Dart cache step uses: Github code snippet
- restore-dart-cache@2: {}
- flutter-build@0: {}
- save-dart-cache@1: {}