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:
1 parent
0ff9125062
commit
ef9b53be98
9 files changed
+95
-65
No files matched your search
@@ -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/**/*"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user