mirror of
https://github.com/apple/pkl.git
synced 2026-04-01 06:33:26 +02:00
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:
4
.github/jobs/GradleJob.pkl
vendored
4
.github/jobs/GradleJob.pkl
vendored
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user