Daz DeBoer
b3afdc78a7
Truncate Gradle args when constructing cache key ( #71 )
...
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
Daz DeBoer
e0c2736e35
Include Gradle invocation arguments in cache keys ( #69 )
...
This permits a new cache entry to be persisted when a subsequent Gradle invocation does more work that an earlier invocation.
Fixes #68
2021-08-22 17:11:05 -06:00
Daz DeBoer
a63892c289
Log cache entry on save
2021-08-22 14:58:36 -06:00
Daz DeBoer
88af98fab4
Fail if configuration-cache is enabled without dependencies cache
...
Fixes #61
2021-08-07 16:13:35 -07:00
Daz DeBoer
02d4f46354
Use core functionality to access action inputs
...
- Specify default values in action.yaml definition where appropriate
- Replace custom methods with core functions:
- getInputBoolean() with core.getBooleanInput()
- inputOrNull() with core.getInput()
- inputArrayOrNull() with core.getMultilineInput()
- Remove github-utils.js
2021-07-26 14:54:59 -06:00
Paul Merlin
f11e7d60d7
Short-circuit dependencies and configuration caching if cache dir already exists
...
This is relevant if you run this action several times in a single job.
This prevent doing unnecessary work starting with the second job using the action.
This prevent droping dependencies downloaded by the first job using the action.
This prevent Windows agents to fail unlinking already existing files.
2020-06-22 16:40:58 +02:00
Paul Merlin
4c7d97cca4
Add caching of Gradle build configuration cache
2020-06-15 15:58:20 +02:00
Paul Merlin
2afa86ca9f
Disable dependencies cache by default
2020-06-15 15:57:09 +02:00
Paul Merlin
ae50675399
Better warning message
2020-06-15 15:43:21 +02:00
Paul Merlin
d7a54a26c7
Don't drop gc.properties in dependencies cache
...
because it would disable Gradle cache cleanup
2020-06-15 15:41:53 +02:00
Paul Merlin
3abad5567a
Add input to disable dependencies caching altogether
2020-06-15 14:32:54 +02:00
Paul Merlin
355e9c1f86
Try delete dependencies lock files and disable caching if not possible
2020-06-15 14:22:41 +02:00
Paul Merlin
317ca35dca
Refine dependencies caching
2020-06-15 13:16:51 +02:00
Paul Merlin
053762c1c1
Add input to make the dependencies caching strict
2020-06-15 13:05:36 +02:00
Paul Merlin
95e20daa83
Automatic caching of dependencies
...
in a best effort manner by default
allowing to specify files to hash for computing the cache key
2020-06-15 13:04:42 +02:00