actions / cache

Cache dependencies and build outputs in GitHub Actions
MIT License
4.49k stars 1.2k forks source link

Caching Flutter/iOS dependencies #1235

Open gmarizy opened 1 year ago

gmarizy commented 1 year ago

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 ?

github-actions[bot] commented 6 months ago

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.

gmarizy commented 6 months ago

I checked, problem is still present