Skip to content

Commit

Permalink
Include flutter version in full cache-key (not needed for restore)
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Aug 28, 2024
1 parent 9e53b53 commit e42f102
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/actions/setup-runner/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runs:
uses: actions/cache/restore@v4
with:
path: ${{ env.PURO_ROOT }}
key: setup-runner-${{ runner.os }}-${{ runner.arch }}-${{ steps.setup.outputs.week }}-${{ inputs.cache-key }}
key: setup-runner-${{ runner.os }}-${{ runner.arch }}-${{ inputs.flutter-version }}-${{ steps.setup.outputs.week }}-${{ inputs.cache-key }}
restore-keys: setup-runner-${{ runner.os }}-${{ runner.arch }}-

- name: Install puro (posix)
Expand Down Expand Up @@ -74,7 +74,8 @@ runs:
# Saving on feature branches will only benefit reruns, so we don't bother.
# Feature branches inherit the cache from the main branch anyway.
# This saves on cache storage.
if: github.ref == 'refs/heads/main' && steps.restore.outputs.cache-hit != 'true'
# if: github.ref == 'refs/heads/main' && steps.restore.outputs.cache-hit != 'true'
if: steps.restore.outputs.cache-hit != 'true' # tmp
uses: actions/cache/save@v4
with:
path: ${{ env.PURO_ROOT }}
Expand Down

0 comments on commit e42f102

Please sign in to comment.