Skip to content

Commit

Permalink
Use hash of top level build.gradle for snapshot cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
brettchabot committed Jan 25, 2024
1 parent 71a3f82 commit 4a0165b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -132,7 +132,9 @@ jobs:
path: |
~/.android/avd/gradle-managed/*
~/.android/adb*
key: ${{ runner.os }}-${{ env.cache-version }}-gmd-${{ steps.get-date.outputs.date }}
# use combination of date (to cover case where emulator or system image version changed) and
# hash of top-level build.gradle (to cover case where AGP or android API level changed)
key: ${{ runner.os }}-${{ env.cache-version }}-gmd-${{ steps.get-date.outputs.date }}-${{ hashFiles('gradle-tests/build.gradle') }}
- name: 'Download local snapshot for tests'
uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit 4a0165b

Please sign in to comment.