Description
Stack currently uses a GitHub workflow and a self-hosted runner to build a statically-linked Stack for Linux/AArch64.
Historically, the runner has been provided by FP Complete. It provides Ubuntu 20.04.2 LTS on AArch64. The statically-linked Stack is then built in an Docker container providing Alpine Linux, with:
/usr/local/bin/stack etc/scripts/release.hs build --alpine --build-args --docker-stack-exe=image
The Docker image being specified (currently) by:
docker:
enable: false
repo: quay.io/benz0li/ghc-musl:9.6.4
@benz0li having managed to compile versions of GHC that work on Alpine Linux/AArch64.
The Haskell Foundation tried to provide a replacement runner but its machine provides NixOS on AArch64 and, as @chreekat has explained elsewhere, exposure to that environment is not good for building binaries.
I am thinking about possible alternatives. One thing I am going to explore - it may fail - is that GitHub runner macos-14
provides an AArch64 machine architecture and Docker is available for macOS/AArch64.