Skip to content

Polish GHA workflows#2685

Open
Goooler wants to merge 1 commit intogoogle:mainfrom
Goooler:workflows
Open

Polish GHA workflows#2685
Goooler wants to merge 1 commit intogoogle:mainfrom
Goooler:workflows

Conversation

@Goooler
Copy link
Copy Markdown
Contributor

@Goooler Goooler commented Nov 2, 2025

  • 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.

@Goooler
Copy link
Copy Markdown
Contributor Author

Goooler commented Nov 2, 2025

@hfmehmed Would you mind taking a look?

Comment thread settings.gradle.kts Outdated
@Goooler Goooler force-pushed the workflows branch 4 times, most recently from 98c4dcb to 21aedc7 Compare November 5, 2025 06:10
Comment on lines -53 to -65
- 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') }}
Copy link
Copy Markdown
Contributor Author

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.

@Goooler Goooler force-pushed the workflows branch 2 times, most recently from e66619d to 46240a2 Compare November 6, 2025 06:19
@hfmehmed
Copy link
Copy Markdown
Collaborator

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.

@Goooler
Copy link
Copy Markdown
Contributor Author

Goooler commented Nov 21, 2025

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.
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