-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add distribution_url
property to override download URL
#61
Conversation
Adds a `distribution_url` property to the action, which overrides the download URL unconditionally. It is up to the caller to provide an archive which works on their Github Actions runner; there is no way (at this time) to vary the distribution URL by architecture or OS. - feat: add `distribution_url` input option - feat: honor `distribution_url` in all branches - chore: update docs with `distribution_url` info Fixes and closes graalvm#60 Signed-off-by: Sam Gammon <[email protected]>
4f805f7
to
0711c08
Compare
@@ -45,10 +46,10 @@ async function run(): Promise<void> { | |||
if (isGraalVMforJDK17OrLater) { | |||
switch (distribution) { | |||
case c.DISTRIBUTION_GRAALVM: | |||
graalVMHome = await graalvm.setUpGraalVMJDK(javaVersion) | |||
graalVMHome = await graalvm.setUpGraalVMJDK(javaVersion, customDistributionUrl) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of letting customDistributionUrl
creep into all these setUp functions, I'd prefer if we handle customDistributionUrl.length > 0
in one place. What do you think?
Is this still something that you need, @sgammon?
Given the current limitations, I wonder how useful this is. |
@fniephaus This is no longer something we need, no :) also, I think new properties were added for custom SDK versions (GVM EA in particular), so we are good to go. Thanks for the bump. |
Adds a
distribution_url
property to the action, which overrides the download URL unconditionally. It is up to the caller to provide an archive which works on their Github Actions runner; there is no way (at this time) to vary the distribution URL by architecture or OS.distribution_url
input optiondistribution_url
in all branchesdistribution_url
infoFixes and closes #60.