Fix CI build for pkldoc (#1349)

Fixes an issue where the executable is not built.

Haven't dug into why this broke; this was working just a little bit ago
(see
https://github.com/apple/pkl/actions/runs/19911073549/job/57079605641?pr=1342).
Nevertheless, the lifecycle job dependencies were a little wonky (test
should assemble first).

[native-pkl-doc]
This commit is contained in:
Daniel Chao
2025-12-05 09:54:57 -08:00
committed by GitHub
parent c2d672e943
commit e1559c66ad

View File

@@ -83,6 +83,7 @@ val assembleNative by
val testNative by val testNative by
tasks.registering { tasks.registering {
group = "verification" group = "verification"
dependsOn(assembleNative)
if (!buildInfo.isCrossArchSupported && buildInfo.isCrossArch) { if (!buildInfo.isCrossArchSupported && buildInfo.isCrossArch) {
throw GradleException("Cross-arch builds are not supported on ${buildInfo.os.name}") throw GradleException("Cross-arch builds are not supported on ${buildInfo.os.name}")
@@ -125,5 +126,5 @@ val checkNative by
val buildNative by val buildNative by
tasks.registering { tasks.registering {
group = "build" group = "build"
dependsOn(assembleNative, checkNative) dependsOn(checkNative)
} }