Run Tests on darwin_arm64 / Apple M1
Is your feature request related to a problem? Please describe.
There has been some work already to support using rules_haskell natively on darwin_arm64. But currently we have to test changes on an M1 machine manually.
This process is time consuming and error prone.
Describe the solution you'd like
Ideally, we would like to run tests on Github Actions for this platform but currently Github Actions is still not ready yet; see https://github.com/actions/virtual-environments/issues/2187.
Describe alternatives you've considered
-
use a different CI for darwin_arm64 jobs :stop_sign: currently I could not find any that would be offering a readily available product (only CodeMagic seems to have an open beta) :newspaper_roll: (2022-06-09) Apparently, Cirrus CI supports running M1 builds: https://cirrus-ci.org/guide/macOS/ -- and building open source projects is free.
-
use a self-hosted runner
This can be set up as described here
update: There is a native runner as a pre-release supporting OSX arm64 now: https://github.com/actions/runner/releases/tag/v2.292.0
see https://github.com/actions/runner/issues/805
Additional context
There is an easier alternative now: Cirrus provides a runner that could be used on Github Actions. See https://github.com/apps/cirrus-runners
cost: 150$ / month / runner
Github officially released M1 macOS runners for open source:
https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/