-
Notifications
You must be signed in to change notification settings - Fork 57
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
Support ARM builds #179
Comments
True. Should this come in the form of an env. variable? Or an input? Or how are you executing this in self-hosted runners? |
I was trying the buildjet hosted arm runners. It requires you to change runs-on
runs-on: buildjet-4vcpu-ubuntu-2204-arm
Checking the action docs it does look like the architecture of the runner is available to you already
RUNNER_ARCH
The architecture of the runner executing the job. Possible values are X86, X64, ARM, or ARM64.
|
Hm... |
Hm... I'm not yet sure how I can test this, actually, unless the online runners (not self-hosted) also support that env. element. If not, it'll have to be by trial-and-error, I guess, maybe with your help. |
I started looking into this and it seems that for all the use cases we've considered, the only one where fetching stuff for ARM would be possible is Gleam (and even then only Mac and Linux, no Windows). We fetch our Erlang/OTP builds from Hex, as well as our Elixir builds, and none of them seem to be available for ARM. Maybe @ericmj can further elaborate or even correct me. |
Elixir and Rebar are architecture agnostic. Bob only builds Erlang for x86/x64. We could provide ARM builds also (we do this for docker images already) but the current build scripts assume x86 so they would need to be modified for any changes ARM requires. https://github.com/hexpm/bob/blob/main/lib/bob/job/otp_checker.ex |
@ericmj, would you accept pull requests to have the builds produce for ARM, and maybe then this action could use those? We can leave this issue open, still, but this is not a limitation the action can directly work around, at the moment, given what is explained above. |
Yes, we would accept PRs. I have linked the places where I think changes need to be made in my previous comment. |
Just hit this same issue with github actions using self hosted. Watching this issue for updates. I am also interested in support for alpine > ubuntu as well for smaller overall image sizes. (Although I suspect github will also need to support that here: https://github.com/actions/runner-images) |
|
Just in time for the official arm release! https://github.blog/2024-06-03-arm64-on-github-actions-powering-faster-more-efficient-build-systems/ |
Github actions support arm self hosted runners but setup-beam assumes x86 and errors
The text was updated successfully, but these errors were encountered: