Skip to content

Commit

Permalink
debug github actions build
Browse files Browse the repository at this point in the history
  • Loading branch information
Gubaer committed Jan 25, 2025
1 parent d782baf commit 90fa1cf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
-Pplugin.josmCompileVersion=${{ matrix.josm-version}}
-Pgraalvm.jdk=jdk${{ matrix.jdk }}
-Pgraalvm.platform=${{ env.GRAALVM_PLATFORM }}
-PtestJdkVersion=${{ matrix.jdk }}
env:
DISPLAY: ":19"
Expand Down
16 changes: 16 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -334,3 +334,19 @@ publishToGithubRelease {
remoteJarName = "scripting.jar"
}


tasks.withType(Test).configureEach {
def testJdkVersion = System.getenv("TEST_JDK_VERSION") ?: "17"

if (testJdkVersion == "17") {
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(17)
}
} else if (testJdkVersion == "21") {
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(21)
}
} else {
throw new GradleException("Invalid TEST_JDK_VERSION: ${testJdkVersion}. Must be 17 or 21.")
}
}

0 comments on commit 90fa1cf

Please sign in to comment.