cache
cache copied to clipboard
Caching Flutter/iOS dependencies
I declared those actions to cache dependencies for a Flutter app targeting iOS:
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
${{ env.FLUTTER_ROOT }}/.pub-cache
**/.packages
**/.flutter-plugins
**/.flutter-plugin-dependencies
**/.dart_tool/package_config.json
key: build-pubspec-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
build-pubspec-
- name: Cache pods
uses: actions/cache@v3
with:
path: ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
Those actions are (seems ?) to be working fine (cache is created, retrieved and restored) but my build action re-download everything every time as if nothing was restored. What I am missing ?
This issue is stale because it has been open for 200 days with no activity. Leave a comment to avoid closing this issue in 5 days.
I checked, problem is still present