6 Commits

Author SHA1 Message Date
Daz DeBoer
c317ccac62
Refactor: extract cache-base out of cache-utils 2021-10-30 12:15:00 -06:00
Daz DeBoer
a74bb0fad6
Monitor cache saves and add basic caching report
- Restore `CachingReport` instance in 'post' action
- Record keys for any entries saved
- Report caching activity as JSON in post action
2021-10-30 12:14:59 -06:00
Daz DeBoer
5a5a5b4387
Normalize paths to Gradle User Home when calculating cache keys
Fixes #77
2021-09-27 21:52:03 -06:00
Daz DeBoer
777a6fc967
Generate cache key based on Job invocation
Attempt to capture as much context as possible about the job run
to generate a unique cache key. Unfortunately much of the matrix context
is not available to the action implementation.
2021-09-05 21:35:17 -06:00
Daz DeBoer
d9cc0aeccf
Remove old caching code 2021-08-24 12:54:21 -06:00
Daz DeBoer
b3afdc78a7
Truncate Gradle args when constructing cache key (#71)
Some checks failed
dev / check (push) Has been cancelled
prod / basic-build (macos-latest) (push) Has been cancelled
prod / basic-build (ubuntu-latest) (push) Has been cancelled
prod / basic-build (windows-latest) (push) Has been cancelled
prod / gradle-execution (macos-latest) (push) Has been cancelled
prod / gradle-execution (ubuntu-latest) (push) Has been cancelled
prod / gradle-execution (windows-latest, .bat) (push) Has been cancelled
prod / dependencies-cache (macos-latest) (push) Has been cancelled
prod / dependencies-cache (ubuntu-latest) (push) Has been cancelled
prod / dependencies-cache (windows-latest) (push) Has been cancelled
prod / configuration-cache (macos-latest) (push) Has been cancelled
prod / configuration-cache (ubuntu-latest) (push) Has been cancelled
prod / configuration-cache (windows-latest) (push) Has been cancelled
prod / cache-read-only (macos-latest) (push) Has been cancelled
prod / cache-read-only (ubuntu-latest) (push) Has been cancelled
prod / cache-read-only (windows-latest) (push) Has been cancelled
prod / failures (push) Has been cancelled
Cache keys have a hard limit of 512 characters, so we need to ensure that we don't generate a key longer than this.

- Remove excess whitespace
- Truncate to 400 characters

Fixes #70
2021-08-24 12:46:48 -06:00