Skip to content

Commit

Permalink
fix imageName property resolving with RUNNER_OS env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkWeird committed Nov 9, 2021
1 parent b88a5ff commit 6e73d9a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,8 @@ dependencies {

}

graalvmNative {
binaries {
main {
imageName = project.name
if (System.getenv("RUNNER_OS") != null) {
imageName += System.getenv("RUNNER_OS")
}
}
}
if (System.getenv("RUNNER_OS") != null) {
graalvmNative.binaries.main.imageName = "${graalvmNative.binaries.main.imageName.get()}-${System.getenv("RUNNER_OS")}"
}

application {
Expand Down

0 comments on commit 6e73d9a

Please sign in to comment.