mirror of
https://github.com/apple/pkl.git
synced 2026-03-24 10:01:10 +01:00
Bump pkl.impl.ghactions to 1.0.1 (#1358)
This commit is contained in:
16
.github/jobs/BuildNativeJob.pkl
vendored
16
.github/jobs/BuildNativeJob.pkl
vendored
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user