Use gradle/actions/setup-gradle (#1397)

This adds the setup-gradle action; which has the following improvements:

* Improved cacheing (compared to setup-java's Gradle cache)
* Validates the gradle wrapper jar
This commit is contained in:
Daniel Chao
2026-01-07 21:10:07 -08:00
committed by GitHub
parent 6b9c670cfd
commit 474305c7b9
9 changed files with 175 additions and 89 deletions

View File

@@ -3,7 +3,7 @@ abstract module GradleJob
extends "PklJob.pkl"
import "@gha/Workflow.pkl"
import "@gha/catalog.pkl"
import "@pkl.impl.ghactions/catalog.pkl"
/// Whether this is a release build or not.
isRelease: Boolean = false
@@ -83,7 +83,6 @@ fixed job {
with {
`java-version` = "21"
distribution = "temurin"
cache = "gradle"
architecture =
if (arch == "amd64")
"x64"
@@ -91,6 +90,7 @@ fixed job {
"aarch64"
}
}
catalog.`gradle/actions/setup-gradle@v5`
...module.steps
}
}