-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use latest JDKs in CI #1880
Use latest JDKs in CI #1880
Conversation
@vasilmkd Is this ready? |
It works, but the GH actions are now ugly, the JDK strings are too long and cut off. Is that an issue? |
I'm okay with it as long as we can look at build failures and tell which case we're in. It's unfortunate, but Jabba really needs to be updated. |
You can inspect the GH action task for setting up Java... not ideal. Maybe close it and we should look for an alternative? |
Yeah this isn't super-great. It's not intolerable though. Let's leave it open and hunt for another option. I think Jabba allows us to define an upstream definitions repo with an environment variable or something? |
Does coursier support installation of JDKs? Edit: It's still done through Jabba. |
@djspiewak Would you accept a PR to |
Jabba now has support for JDK 16:
|
I see. But it's not from |
Apparently Coursier can also install a JVM by using its own index (or probably any index). The necessary option is
|
Honestly this is what I've been looking for. Do you mind sharing a link to where this is documented? Thank you. |
I don't think it's documented :-) I've found it in the source and experimented: https://github.com/coursier/coursier/blob/master/modules/jvm/src/main/scala/coursier/jvm/JvmIndex.scala. The |
Honestly seems like something we should try to handle in sbt-github-actions. I don't mind using Coursier instead of Jabba directly to handle that installation, it's just going to require some reworking of the core |
Are you sure it doesn't require building a new GH action for this? I'd actually be willing to try to experiment with this and write it in Scala.js. |
I mean, if you wanna try then go for it. :-D Everything that you can do in an action you can also do in a bit of bash dropped into an |
But we do use the |
Looks like the jabba index has been refreshed to include the latest JDKs. |
(not familiar with what particular needs this repo might have, but:) can you use setup-java supports things like
where |
Yeah, I've used We don't really have any special requirements. We "inherit" |
AdoptOpenJDK 16 is finally available through Jabba. GraalVM 21.1 is also available but fails to install for some reason. I have opened an issue with Jabba. |
I'm merging this because it only touches the build and it is important to build and test against the latest supported JDK. |
Jabba, the JDK downloader that we depend on through our Github Actions configuration has not been updated in quite some time, and hacks like this need to be done to get a hold of the latests JDK releases in any of the major versions (8, 11, 16, Graal).