subosito / flutter-action

Flutter environment for use in GitHub Actions. It works on Linux, Windows, and macOS.
MIT License
2.16k stars 193 forks source link

Flutter Cache Not Working #250

Closed tcf909 closed 8 months ago

tcf909 commented 8 months ago

Hello,

When trying to use cache: true I see this in the post hooks (and caching never seems to actually work):

image

Composite action def:

runs:
  using: 'composite'
  steps:
    - name: Install Flutter
      uses: subosito/flutter-action@v2
      with:
        channel: 'stable'
        flutter-version: '3.10.6'
        cache: true
        #cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' # optional, change this to force refresh cache
        #cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' # optional, change this to specify the cache path

This is on both ubuntu-latest and macos-13

tcf909 commented 8 months ago

I do see the underlying cache action run with a path, so not sure why the post action says it does not have one:

image

tcf909 commented 8 months ago

Possibly related to: https://github.com/actions/cache/issues/803#issuecomment-1127576674

tcf909 commented 8 months ago

I'm not sure what changed in my environment but I am seeing some cache hits. Will close for now.