mirror of
https://github.com/apple/pkl.git
synced 2026-08-27 14:14:02 +02:00
* Fix issue where the DeployJob and GithubRelease jobs download artifacts using a glob that only matches one artifact * Make NativeImageBuild task only produce outputs as declared by build; ensure there's no build_artifacts.txt, sources/ dir, etc.
33 lines
755 B
Plaintext
33 lines
755 B
Plaintext
extends "GradleJob.pkl"
|
|
|
|
import "@gha/catalog.pkl"
|
|
|
|
// Keep this in sync with projects that build java executables
|
|
local projects: List<String> = List("pkl-doc", "pkl-cli", "pkl-codegen-java", "pkl-codegen-kotlin")
|
|
|
|
local command =
|
|
new Listing<String> {
|
|
"./gradlew"
|
|
module.gradleArgs
|
|
for (project in projects) {
|
|
// NOTE: `build` doesn't build native executables
|
|
"\(project):build"
|
|
}
|
|
}.join(" ")
|
|
|
|
steps {
|
|
catalog.`actions/checkout@v6`
|
|
new {
|
|
name = "gradle build java executables"
|
|
shell = "bash"
|
|
run = command
|
|
}
|
|
(catalog.`actions/upload-artifact@v5`) {
|
|
name = "Upload executable artifacts"
|
|
with {
|
|
name = "deploy-artifacts-java-executables"
|
|
path = "*/build/executable/**/*"
|
|
}
|
|
}
|
|
}
|