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 support for automatically selecting (at run-time) the latest available release of Juliaup #8

Open
DilumAluthge opened this issue Mar 25, 2024 · 3 comments

Comments

@DilumAluthge
Copy link
Member

DilumAluthge commented Mar 25, 2024

The idea is that the user could do e.g.

- uses: julia-actions/install-juliaup@latest
  with:
    julia-version: '1'
    internal-juliaup-version: 'latest'

And then we automatically look up the latest available release of Juliaup, and use that. So the user doesn't have to hardcode the version number of Juliaup.

We can even make latest the default value for the internal-juliaup-version input, allowing the user to do this:

- uses: julia-actions/install-juliaup@latest
  with:
    julia-version: '1'
@DilumAluthge
Copy link
Member Author

DilumAluthge commented Mar 29, 2024

I think that this would be a lot of work for relatively little payoff.

In order to make this work, we would need to use the GitHub API to fetch the list of all releases for the JuliaLang/juliaup, and then sort the release version numbers in increasing order, and then take the maximum version number.

And in order to make requests to the GitHub API, we need a GitHub token with read access.

@DilumAluthge DilumAluthge changed the title Add support for automatically selecting the latest available release of Juliaup Add support for automatically selecting (at run-time) the latest available release of Juliaup Mar 29, 2024
@davidanthoff
Copy link

We could upload the latest portable archive to a stable URL on S3, and then this action could always get the Juliaup binaries from that URL, and it would always be the latest version without any need to update things here.

@DilumAluthge
Copy link
Member Author

It occurs to me: we don't actually need to host the full archive somewhere. We actually only need to host a text file (on a JuliaLang domain) that contains the version number of the latest stable release of Julia. Then, in this action, we can:

  1. Download that text file and extract the version number.
  2. Interpolate that version number into the https://github.com/JuliaLang/juliaup/releases/download/v${juliaup_version}/juliaup-${juliaup_version}-${triplet}-portable.tar.gz URL.
  3. Download the Juliaup archive from the GitHub releases URL.

@DilumAluthge DilumAluthge pinned this issue Jul 10, 2024
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