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

Use Gradle Build Action #4986

Merged

Conversation

runningcode
Copy link
Contributor

@runningcode runningcode commented Jan 17, 2025

Summary

This adds the Gradle build action to all Gradle workflows to speed up
builds using caching.
This replaces the Github action cache as well as the Gradle Wrapper
Validation action since the Gradle Build action performs the same
validation

As an example: ktlint on this PR took just 56 seconds (compared to 2:30 on other PRs) due to partial caching since the Gradle Build Action is already enabled for some workflows.

Screenshots

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#

Any other notes

This adds the Gradle build action to all Gradle workflows to speed up
builds using caching.
This replaces the Github action cache as well as the Gradle Wrapper
Validation action since the Gradle Build action [performs the same
validation](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#gradle-wrapper-validation)
Copy link
Member

@jpelgrom jpelgrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Good to be consistent and use the default caching instead of our own which is probably outdated.

As an example: ktlint on this PR took just 56 seconds (compared to 2:30 on other PRs) due to partial caching since the Gradle Build Action is already enabled for some workflows.

Comparing numbers across PR runs is difficult because GitHub Actions performance can vary a lot.

@jpelgrom jpelgrom merged commit 1dda14d into home-assistant:master Jan 17, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants