Loading
Sign in before continuing.
Commits on Source 64
-
Daz DeBoer authored
- Ensure that "Caching Gradle state" group always has 1 message - Only print cache report when entries were restored or saved
-
Daz DeBoer authored
Failures to store cache entries should not fail the action or the Job. This fix attempts to catch and log any unexpected errors that occur when saving cache entries. Fixes: #119 Fixes: #120
-
Daz DeBoer authored
Instead of passing `--no-daemon` on the command line, the same functionality is now acheived by writing a gradle.properties file when initializing Gradle User Home.
-
Daz DeBoer authored
Instead of writing this file to a temp directory and referencing it on the Gradle command line, the init script is now written to Gradle User Home so that it is picked up automatically.
-
Daz DeBoer authored
The generated gradle.properties file and init script are not cached, so need to be generated even when restoring from cache.
-
Daz DeBoer authored
Instead of writing the URL to a file on disk, reading it later and using the Actions API to record the output parameter and write the notice, these things are now done directly via Actions commands emitted directly from the init script.
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
Avoid using command-line modification to enhance build execution. Instead, files are written to Gradle User Home to achieve the same functionality.
-
Daz DeBoer authored
This is a pure refactor, moving from a separate .cache file per bundle to a single cache-metadata.json file describing all bundles. Instead of storing cache metadata in a separate .cache file per artifact bundle, all of the metadata is now stored in a single `.json` file. This will make it easier to implement more flexible artifact-caching strategies, such as caching each wrapper zip separately. * Always include cache protocol version in cache key * Store all cache metadata in a single JSON file * Rename cache-metadata file and bump protocol version * Polish and documentation
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
Using a single cache entry for all files of a type is necessary to avoid overloading the cache service. However, this mechanism is not very efficient for certain artifacts like wrapper zips and generated-gradle-jars, where the same individual files are often shared between different jobs. With this change, any configured file patterns that do not end in '*' will be cached as individual files. At this time this includes downloaded wrapper zips and generated-gradle-jars. Fixes #78
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
Cache reporting is self-contained enough that it deserves some separation.
-
Daz DeBoer authored
Instead of relying on the separate cache implementations to check for the existence of cached products, we now explicitly track whether or not the execution is the first time the action has been invoked for a job.
-
Daz DeBoer authored
Previously, the action was restoring/saving the configuration-cache data for each step that applied the action. In order to support Gradle invocations that are _not_ managed by the action, the configuration-cache restore is now performed in the initial action step, and save is performed in the final post-action step. The build root directories are recorded for each invocation via an init script.
-
Daz DeBoer authored
-
Daz DeBoer authored
Restore/save configuration-cache data in first action step. This will enable the use of the action for caching without managing all gradle invocations.
-
Daz DeBoer authored
If the user supplies no 'arguments' parameter, the action will function as a 'setup-gradle' action, adding Gradle to the PATH and enabling other features without actually running a Gradle build. Any subsequent Gradle invocations in the workflow will benefit from: - Save/restore of Gradle User Home - Save/restore of configuration-cache data - Capture of build-scan URLs These features are enabled via Gradle User Home, so any Gradle invocation that uses the same Gradle User Home will be included.
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
Allow action to be used without Gradle execution
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
Due to limitations with the way extracted entries are defined, a separate entry is defined for *nix and windows. Fixes #33
-
Daz DeBoer authored
- Remove configuration parameter for cache-entry-definitions. This allows richer modelling of extracted entries. - Include both *.zip and *.tar.gz in entry definition for java-toolchains.
-
Daz DeBoer authored
Instead of using a fallback strategy to locate a configuration-cache entry based on the current job and git SHA, these entries are now keyed based on their file content with the keys persisted in the primary Gradle User Home entry. This removes the chance of having a configuration-cache entry restored that is incompatible with the restored Gradle User Home state, and makes the logic easier to understand. This change involved a fairly major refactor, with the CacheEntryExtractor being split out from the primary cache implementation, and adding a separate extractor implementation for configuration-cache.
-
Daz DeBoer authored
-
Daz DeBoer authored
- Cache downloaded Java Toolchains - Treat configuration-cache entries as extracted entries
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
Fixes #76
-
Daz DeBoer authored
This should make it easier to differentiate between build scan notices for different Gradle invocations in the same Job. Fixes: #124
-
Benedikt Ritter authored
See https://github.com/marketplace/actions/github-script#breaking-changes-in-v5 * Update docs to latest github-script action version * Update CI build to latest GitHub API
-
Daz DeBoer authored
- Update all references in README.md - Update version used in `pr-build-scan-comment` - Discourage the use of `cache: gradle` with `setup-java@v2`
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
This change to the integration tests should properly isolate multiple runs of the same job. Previously, some jobs would fail if you attempted to re-run them via the UI, because the cache entries would be re-used from the previous run.
-
Daz DeBoer authored
Fix Build Scan capture when cache is disabled With the change to use init-scripts to inject Build Scan capture, this functionality broke when caching was disabled and Gradle User Home wasn't initialized. This PR fixes a couple of issues and ensures that the Gradle User Home is initialized even when it is not restored from the GitHub Actions cache. Fixes #138 Fixes #139
-
Daz DeBoer authored
By default, the action will attempt to restore a Gradle User Home cache entry from a different set of matrix inputs (or a different Job entirely) if an existing entry is not found for the current Job (including matrix inputs). By specifying the experimental `gradle-home-cache-strict-match` parameter, a user can avoid this fuzzy matching and ensure that a job execution starts with an empty Gradle User Home if no entry from a prior execution is found.
-
Daz DeBoer authored
-
Daz DeBoer authored
There may be cases where it a "fresh" cache entry would be beneficial, for example if the Gradle User Home cache entry grows over time. This setting would run the build as if no prior cache entry exists.
-
Daz DeBoer authored
When the target entry already exists, we are unable to save. Ensuring this situation is logged helps make the logs more understandable.
-
Daz DeBoer authored
-
Daz DeBoer authored
-
Daz DeBoer authored
Improves logging for caching, and adds 2 experimental cache options: - `gradle-home-cache-strict-match`: Avoid re-using a Gradle Home cache entry written by a different job. Only cache entries written by the current Job will be used. - `cache-write-only`: Do not restore existing cache entries, but still save cache entries in post-action. Fixes #141.
-
Daz DeBoer authored