Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.23 KB

flutter-key-cache.md

File metadata and controls

26 lines (17 loc) · 1.23 KB

(Flutter) Cache Dart dependencies (Beta)

Description

Cache the contents of the Dart pub system cache folder with the new key-based caching Steps, Save Dart Cache and Restore Dart Cache.

Instructions

  1. Add the Restore Dart Cache Step to the Workflow.
  2. Add one of Flutter Steps to the workflow, such as Flutter Build
  3. Add the Save Dart Cache Step.

Fine tune cache behaviour

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

bitrise.yml

- restore-dart-cache@2: {}
- flutter-build@0: {}
- save-dart-cache@1: {}