Skip to content
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

Supporing JDK 20 with GraalVM >22 #157

Closed
tusharmath opened this issue Jun 17, 2023 · 2 comments
Closed

Supporing JDK 20 with GraalVM >22 #157

tusharmath opened this issue Jun 17, 2023 · 2 comments

Comments

@tusharmath
Copy link

Then naming convention has changed in the latest version of graalvm. Because of this change we aren't able to upgrade to the latest version of Graal as it introduces a download error.

More Info
https://github.com/graalvm/setup-graalvm#migrating-from-graalvm-223-or-earlier-to-the-new-graalvm-for-jdk-17-and-later

The new GraalVM for JDK 17 and JDK 20 release aligns the GraalVM version scheme with OpenJDK. As a result, this action no longer requires the version option to select a specific GraalVM version. At the same time, it introduces a new distribution option to select a specific GraalVM distribution (graalvm, graalvm-community, or mandrel). Therefore, to migrate your workflow to use the latest GraalVM release, replace the version with the distribution option in the workflow yml config, for example:

# ...
- uses: graalvm/setup-graalvm@v1
  with:
    java-version: '17'
    version: '22.3.2' # Old 'version' option for the GraalVM version
    # ...

can be replaced with:

# ...
- uses: graalvm/setup-graalvm@v1
  with:
    java-version: '17.0.7' # for a specific JDK 17; or '17' for the latest JDK 17
    distribution: 'graalvm' # New 'distribution' option
    # ...
@mdedetrich
Copy link
Contributor

I don't have that much time to work on this right now but if effort is put into creating a PR I would be happy to review it.

@mdedetrich
Copy link
Contributor

Fixed and deployed with #164

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants