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

Add distribution_url property to override download URL #61

Closed
wants to merge 1 commit into from

Conversation

sgammon
Copy link

@sgammon sgammon commented Sep 13, 2023

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 #60.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Sep 13, 2023
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]>
sgammon added a commit to elide-dev/elide that referenced this pull request Sep 13, 2023
sgammon added a commit to elide-dev/elide that referenced this pull request Sep 14, 2023
sgammon added a commit to elide-dev/elide that referenced this pull request Sep 18, 2023
sgammon added a commit to elide-dev/elide that referenced this pull request Sep 19, 2023
sgammon added a commit to elide-dev/elide that referenced this pull request Sep 19, 2023
@@ -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)
Copy link
Member

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?

@fniephaus fniephaus self-assigned this Sep 20, 2023
@fniephaus
Copy link
Member

Is this still something that you need, @sgammon?

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.

Given the current limitations, I wonder how useful this is.

@sgammon
Copy link
Author

sgammon commented Jan 21, 2025

@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.

@sgammon sgammon closed this Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to use a custom distribution URL
2 participants