Skip to content

Commit

Permalink
Use all source files in gradle cache key on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
growse committed May 24, 2022
1 parent 5e49510 commit e6bfb14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ aliases:
run:
name: Generate cache checksum
command: |
find . -name 'build.gradle.kts' -o -name "libs.versions.toml" -o -name "gradle-wrapper.properties" | sort | xargs cat | shasum | awk '{print $1}' > /tmp/gradle_cache_seed
find . -name 'build.gradle.kts' -o -name "libs.versions.toml" -o -name "gradle-wrapper.properties" -o \( -path "./project/app/src/*" -a \( -name "*.kt" -o -name "*.java" \) \) | sort | xargs cat | shasum | awk '{print $1}' > /tmp/gradle_cache_seed
- &restore_gradle_cache
restore_cache:
name: Restore gradle cache
Expand Down

0 comments on commit e6bfb14

Please sign in to comment.