Skip to content

Commit

Permalink
ci: workaround, grant +x for native-image
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki0 committed Mar 26, 2024
1 parent 7c2eb48 commit 6cab73b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.graalvm.buildtools.gradle.dsl.GraalVMExtension

plugins {
`java-library`
kotlin("jvm") version "1.9.23"
Expand Down Expand Up @@ -137,3 +139,16 @@ graalvmNative {
buildArgs.add("-H:+UnlockExperimentalVMOptions")
}
}

tasks.nativeTestCompile {
doFirst {
val d =
project.extensions.getByType(GraalVMExtension::class).binaries["test"].asCompileOptions().javaLauncher.get().executablePath.asFile.parentFile
val ni = File(d, "native-image")
if (ni.exists()) {
ni.setExecutable(true)
}
}
}


0 comments on commit 6cab73b

Please sign in to comment.