chore: Use cache in continuous-integration-workflow.yml#12449
Closed
jongwooo wants to merge 1 commit into
Closed
Conversation
Signed-off-by: jongwooo <jongwooo.han@gmail.com>
Collaborator
|
Thanks, @jongwooo. Will you please rebase this to |
Contributor
Author
|
@jzheaux I tried to rebase with |
Collaborator
|
Try this, please: git checkout 5.7.x
git cherry-pick 7a9eb93b34e0233dd3a3dbc39f2f858639a6c5a9
git push ${remote} +chore/use-setup-java-action-to-cache-dependencieswhere Then, change the base of this PR to |
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: jongwooo jongwooo.han@gmail.com
Description
Updated
continuous-integration-workflow.ymlto cache dependencies using actions/setup-java.setup-java@v3or newer has caching built-in.About caching workflow dependencies
Jobs on GitHub-hosted runners start in a clean virtual environment and must download dependencies each time, causing increased network utilization, longer runtime, and increased cost. To help speed up the time it takes to recreate files like dependencies, GitHub can cache files that frequently use in workflows.
Solutions
Java projects can run faster on GitHub Actions by enabling dependency caching on the setup-java action.
setup-javasupports caching for both Gradle and Maven projects.AS-IS
TO-BE
References
actions/setup-java#caching-packages-dependencies
How to build Gradle projects with GitHub Actions