mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-22 22:56:07 +00:00
2abe6cda7a
The Gleam installer had two arch-related bugs: 1. Darwin reused the Linux config (installOpts.darwin = installOpts.linux), downloading x86_64-unknown-linux-musl on macOS, causing ENOEXEC. 2. Linux hardcoded x86_64, downloading the wrong binary on ARM64 runners, causing 'Syntax error' when trying to execute an x86_64 ELF. Add arch detection via getRunnerOSArchitecture() to both Linux and Darwin download URLs, selecting the correct aarch64 or x86_64 binary. Add a proper Darwin config that downloads apple-darwin archives.