Fix macos/amd64 image builds (#1322)

This commit is contained in:
Daniel Chao
2025-11-17 12:16:28 -08:00
committed by GitHub
parent a2cc70ae37
commit bc5d675b6e
8 changed files with 389 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
extends "GradleJob.pkl"
import "@gha/actions/Artifact.pkl"
import "@gha/Context.pkl"
/// Whether to link to musl. Otherwise, links to glibc.
musl: Boolean(implies(module.os == "linux")) = false
@@ -11,6 +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"
}
when (musl) {
"-Dpkl.musl=true"