rules_haskell icon indicating copy to clipboard operation
rules_haskell copied to clipboard

Run Tests on darwin_arm64 / Apple M1

Open avdv opened this issue 3 years ago • 2 comments

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

  1. 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.

  2. 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

avdv avatar May 19 '22 15:05 avdv

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

avdv avatar Oct 27 '22 15:10 avdv

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/

avdv avatar Feb 01 '24 08:02 avdv