fpm icon indicating copy to clipboard operation
fpm copied to clipboard

FPM Binaries in Github not available for Macs with Apple Silicon

Open ktras opened this issue 2 months ago • 2 comments

As you can see from the list of binaries available under the Assets tab of the latest fpm release, there are no binaries available for Apple Silicon Macs, even though all new macs for a couple of years now are macs that use apple silicon/AArch64.

In CI, if you are trying to use the fortran-lang/setup-fpm@main action and wanting to test Apple Silicon, it looks for System architecture: arm64 and finds that there are no binaries available. It would be useful to have an fpm binary that works on apple silicon and this would avoid the need to compile fpm from source in CI each and every time it runs.

ktras avatar Dec 11 '25 20:12 ktras

v8 is compatible with arm64 macs, and is in the CI/CD pipeline already. Of course for past releases/those where a binary is not available, it must be built from sources. For the upcoming releases, I totally agree that arm macOS builds should be always included. Can you explain your issue better? I believe setup-fpm@v8 should cover (although not with pre-built binaries) arm64 macs seamlessly

perazz avatar Dec 12 '25 13:12 perazz

@perazz Thanks for your answer. This is not a question of functionality, but efficiency.

We greatly appreciate that setup-fpm is capable of building from source as a fallback when no binary is available. However building fpm from source takes over 10x longer than installing a binary. Granted it's still not a very long build, but when you tally it up across hundreds or thousands of CI job runs per day, that still adds up to alot of wasted time / energy / carbon.

IIUC a user with the correct permissions could take a few minutes to simply upload a macos-arm64 binary for at least the current fpm release (and optionally older releases), and avoid all that waste in the future. That is what we're requesting.

bonachea avatar Dec 12 '25 17:12 bonachea