Add experimental support for cache-cleanup

- Includes basic implementation as `CacheCleaner`
- Integration test that checks unused files are removed:
  - Downloaded dependencies
  - Local build cache entries
  - Wrapper distributions
This commit is contained in:
Daz DeBoer 2022-06-12 09:53:04 -06:00
parent ef638c00fd
commit 915123c493
No known key found for this signature in database
GPG key ID: DD6B9F0B06683D5D
14 changed files with 522 additions and 1 deletions

View file

@ -70,6 +70,10 @@ inputs:
description: Used to uniquely identify the current job invocation. Defaults to the matrix values for this job; this should not be overridden by users (INTERNAL).
required: false
default: ${{ toJSON(matrix) }}
gradle-home-cache-cleanup:
description: When 'true', the action will attempt to remove any stale/unused entries from the Gradle User Home prior to saving to the GitHub Actions cache.
required: false
default: false
outputs:
build-scan-url: