graalvm / setup-graalvm

GitHub Action for setting up GraalVM distributions.
https://www.graalvm.org
Universal Permissive License v1.0
192 stars 27 forks source link

Ability to use a custom distribution URL #60

Open sgammon opened 1 year ago

sgammon commented 1 year ago

Hey there GraalVM team,

I'm testing against GVM master for a few bugs which are anticipated to be fixed in the upcoming Sept release. While I could figure out how to use a dev release, I couldn't find a way to use a custom distribution URL (in case testing needs to be done against a completely custom GVM distribution).

I wanted to humbly request a way to do this, and I intend to offer a PR as well shortly.

fniephaus commented 1 year ago

While I could figure out how to use a dev release.

java-version: 'dev' is what you need to use a GraalVM dev build. If this is not clear enough in the README.md, maybe you have an idea how we can improve the docs?

I intend to offer a PR as well shortly.

Thank you! Generally, I'm not against distribution_url but if your only use case is to use a dev build, then I'm not sure this is the right thing to do. The main reason for this is that GraalVM dev builds are volatile: we only keep the last N builds around. This means that whatever URL you decide to use, it will become unavailable and break your builds within a few weeks. java-version: 'dev', on the other hand, always pulls the latest dev build.