cache icon indicating copy to clipboard operation
cache copied to clipboard

Caching Flutter/iOS dependencies

Open gmarizy opened this issue 1 year ago • 2 comments

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 ?

gmarizy avatar Sep 06 '23 16:09 gmarizy

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.

github-actions[bot] avatar Mar 25 '24 08:03 github-actions[bot]

I checked, problem is still present

gmarizy avatar Mar 25 '24 22:03 gmarizy