-
Notifications
You must be signed in to change notification settings - Fork 366
Polish GHA workflows #2685
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
base: main
Are you sure you want to change the base?
Polish GHA workflows #2685
Conversation
|
@hfmehmed Would you mind taking a look? |
98c4dcb to
21aedc7
Compare
| - name: Cache Gradle Cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ~/.gradle/caches | ||
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}-${{ hashFiles('**/gradle.properties') }} | ||
| # An ordered list of keys to use for restoring the cache if no cache hit occurred for key | ||
| restore-keys: | | ||
| ${{ runner.os }}-gradle- | ||
| - name: Cache gradle wrapper | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ~/.gradle/wrapper | ||
| key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These cache steps do not work correctly, they should be run on the default branch only.
e66619d to
46240a2
Compare
|
I took a look at this and most changes look good in general although it is difficult for me to confirm that there will no unexpected regressions or behaviour changes after this. Would you mind splitting the PRs a bit, e.g updating JDK separately, updating the github action versions to v5, setting up the gradle cache etc. It will make it easier to review as well as after each change we can see if there is unexpected things happening. |
|
The workflows are so simple that I don’t expect any regressions or difficulties in understanding. |
- Bump actions, old ones are deprecated. - Cache Gradle stuff via `gradle/actions/setup-gradle`. - Replace `gw check` with `gw build`, which includes check and the other tasks. - Replace build reports uploading with Gradle build scans published by the Develocity plugins. - Disables redundant jobs for the forked repositories.
gradle/actions/setup-gradle.gw checkwithgw build, which includes check and the other tasks.