-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Erlang/OTP windows builds #26
Comments
You can now find auto-uploaded and pre-built executables on each releases on their github pages as well: https://github.com/erlang/otp/releases/tag/OTP-23.3.1 |
Eh nevermind I might be wrong on the automated nature, the smaller point releases don't have them https://github.com/erlang/otp/releases/tag/OTP-21.3.8.22 -- though that could be because they're older than the commits containing the hooks to build. |
I see. All we need is a list then, basically. I mean, we could just talk to github's api, but optimally we have one general way of getting a list, parsing it, etc. Maybe some other things I'm not thinking about at the moment. |
For |
@jhogberg confirmed that it is automated and it happens for all releases since OTP 23.0. So we should be able to rely on precompiled releases from that version onwards (which in my opinion is a fine requirement to make). |
https://api.github.com/repos/erlang/otp/releases 😄 and if they had a label "otp_win32" it'd be sweet 😄 At the same time, I guess I can parse those results and use the versions that are left over from e.g. |
You should be able to use
|
@jhogberg, I need the information before I download the package, since (at least in the
|
I might be missing something but I believe instead of your condition being "has label otp_win32" it is "version is >= 23"? You can still grab the list of releases from https://api.github.com/repos/erlang/otp/releases. |
@wojtekmach, I can use that condition, no prob. I was just stating that a label would help us not need to do an extra check. In any case, I can filter by name, hoping it'll always be consistent 😄 Edit: I was trying to be strict over "all releases", but I can assume it might fail and output a message accordingly 👍 Edit: more importantly, what I need to do is install Erlang Win32 on my desktop and make the Powershell script work. |
I was able to create a sample project that uses official OTP windows builds on GitHub Actions:
We still need to make it so that erlef/setup-beam on Windows downloads and executes the installer but at least we know it's possible! Thanks @jhogberg for mentioning that NSIS installers have an unattended flag ( |
This is a separate discussion but I was also able to easily install OTP on macOS using Homebrew (same idea as in asdf-vm/asdf-erlang#190): |
Closing this as resolved. setup-beam is now making use of windows builds from erlang/otp (via github). |
Background
We're wanting to get in support for windows in erlef/setup-beam. There's a few existing examples go by for that work, but it seems optimal to get the builds from the OTP team itself. This also requires a builds list ala https://repo.hex.pm/builds/otp/ubuntu-18.04/builds.txt. This may already exist, but if so it's not clear where it is.
If I recall correctly we had dialog before around the OTP team providing more builds on github for a wider array of operating systems and architectures, but I don't believe we executed on that per looking at what's available on github right now.
As far as I'm aware the only place to find a windows build from OTP team is in http://erlang.org/download/ (or via the download page on erlang.org), however there is no textual list (either plain text ala hex build list or in json format). It may be required to build a matrix of windows / otp versions, but that is not clear to me per having little experience with windows and Erlang/OTP.
While, getting packages on github may be an objective here, it's not clear whether that is really needed to for our goals. However, we need to the windows builds to be highly available which erlang.org may not be able to provide.
Finally, per my limited experience with installing Erlang/OTP on windows it's not clear to me whether the existing builds can be installed unassisted (i.e., via the CLI).
Objective(s)
The text was updated successfully, but these errors were encountered: