Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a reference to gradle-cache-action to Java-Gradle configuration #402

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vlsi
Copy link

@vlsi vlsi commented Aug 19, 2020

https://github.com/burrunan/gradle-cache-action is @actions/cache-based action for better caching when Gradle is used.

It comes with defaults, so there's no need to configure paths.

PS. I add the exclusion of !~/.gradle/wrapper/dists/**/gradle*.zip to the default configuration, as the file (100-150MiB) is used one time only (see gradle/gradle#3605), however, I include the change into the single PR to avoid unexpected merge conflicts between the two

@vlsi
Copy link
Author

vlsi commented Aug 19, 2020

Just in case, the way to use gradle-cache-action would as follows, however, I'm not sure it needs to be added to actions/cache examples.

- uses: burrunan/gradle-cache-action@v1
  name: Build
  with:
    job-id: jdk${{ matrix.jdk }}
    arguments: --scan build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants