Fix release builds (#1317)

In order to preserve the folder hierarchy in our uploaded artifact,
we need to insert a wildcard in the root path.

Also, fix fan-in of tasks that lead to the publish test result task.
This commit is contained in:
Daniel Chao
2025-11-14 15:18:30 -08:00
committed by GitHub
parent 0ff9125062
commit ef9b53be98
9 changed files with 95 additions and 65 deletions

View File

@@ -17,7 +17,6 @@ extraGradleArgs {
}
}
steps {
when (musl) {
new {
@@ -28,10 +27,7 @@ steps {
new {
name = "gradle buildNative"
shell = "bash"
run =
"""
./gradlew \(module.gradleArgs) \(project):buildNative
"""
run = "./gradlew \(module.gradleArgs) \(project):buildNative"
}
new Artifact.Upload {
name = "Upload executable artifacts"
@@ -41,7 +37,9 @@ steps {
"executable-\(project)-alpine-\(module.os)-\(module.arch)"
else
"executable-\(project)-\(module.os)-\(module.arch)"
path = "\(project)/build/executable/**/*"
// Need to insert a wildcard to make actions/upload-artifact preserve the folder hierarchy.
// See https://github.com/actions/upload-artifact/issues/206
path = "\(project)*/build/executable/**/*"
}
}
}