Skip to content

Choose appropriate minimum JDK for JRuby versions #718

Closed
@headius

Description

@headius

JRuby 10 is just about to be released, and master (now hosting 10) will become jruby-head once we unlock jruby-dev-builder (ruby/jruby-dev-builder#9). JRuby 10, unlike 9.4, depends on JDK 21 minimum. Because GHA defaults JAVA_HOME to a Java 17 install, we need to adjust that for all setup-ruby use on JRuby >= 10-snapshot.

Users of JRuby 10 should not have to perform an additional step to choose the proper JDK level, and we can't flip jruby-head builds to 10 until this is fixed.

I am not familiar enough with the codebase or GHA to know where to put this code. The basic requirement is to detect that we're setting up a JRuby version (head or 10+) that requires JDK 21, and alter the JAVA_HOME environment variable to point at the contents of the platform-appropriate JAVA_HOME_21_* variable (see https://github.com/actions/runner-images/discussions/9266 for some discussion on that).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions