Skip to content

Commit

Permalink
Use stable release for dev builds on JDK 20 and earlier.
Browse files Browse the repository at this point in the history
See #36
  • Loading branch information
fniephaus committed Sep 6, 2023
1 parent 265e018 commit 3a5af47
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,14 @@ async function run(): Promise<void> {
'Downloading GraalVM EE dev builds is not supported'
)
}
graalVMHome = await graalvm.setUpGraalVMJDKDevBuild()
if (semverValid(javaVersion) && !semverGte(javaVersion, '21')) {
core.warning(
`GraalVM dev builds are only available for JDK 21. This build is now using a stable release of GraalVM for JDK ${javaVersion}.`
)
graalVMHome = await graalvm.setUpGraalVMJDK(javaVersion)
} else {
graalVMHome = await graalvm.setUpGraalVMJDKDevBuild()
}
break
default:
if (graalVMVersion.startsWith(c.MANDREL_NAMESPACE)) {
Expand Down

0 comments on commit 3a5af47

Please sign in to comment.