Bump pkl.impl.ghactions to 1.0.1 (#1358)

This commit is contained in:
Daniel Chao
2025-12-09 10:53:04 -08:00
committed by GitHub
parent b7ccc67bd8
commit 9d41518553
14 changed files with 311 additions and 178 deletions

View File

@@ -1,7 +1,7 @@
extends "GradleJob.pkl"
import "@gha/actions/Artifact.pkl"
import "@gha/Context.pkl"
import "@gha/catalog.pkl"
import "@gha/context.pkl"
/// Whether to link to musl. Otherwise, links to glibc.
musl: Boolean(implies(module.os == "linux")) = false
@@ -12,7 +12,7 @@ project: String
extraGradleArgs {
when (os == "macOS" && arch == "amd64") {
"-Dpkl.targetArch=\(module.arch)"
"-Dpkl.native--native-compiler-path=\(Context.github.workspace)/.github/scripts/cc_macos_amd64.sh"
"-Dpkl.native--native-compiler-path=\(context.github.workspace)/.github/scripts/cc_macos_amd64.sh"
}
when (musl) {
"-Dpkl.musl=true"
@@ -48,7 +48,7 @@ steps {
shell = "bash"
run = "./gradlew \(module.gradleArgs) \(project):buildNative"
}
new Artifact.Upload {
(catalog.`actions/upload-artifact@v5`) {
name = "Upload executable artifacts"
with {
name =
@@ -62,3 +62,11 @@ steps {
}
}
}
fixed job {
when (os == "linux" && !musl) {
container {
image = "redhat/ubi8:8.10"
}
}
}