Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cirrus CI Mac M1 build #769

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Draft

Conversation

elopez
Copy link
Member

@elopez elopez commented May 16, 2022

This adds automated builds using Cirrus CI, which offers M1 runners. The build process performed is similar to the current GH Actions Mac CI, which uses Stack. The main process changes include:

  • brew install: add libtool haskell-stack hpack which are not available by default.
  • --extra-include-dirs=/opt/homebrew/include --extra-lib-dirs=/opt/homebrew/lib: Fixes failure to link with gmp.
  • --resolver=ghc-8.10.7, --compiler=ghc-8.10.7: GHC 8.10.4 is not available on M1. 8.10.5 hanged during build 馃槥 8.10.7 works fine 馃帀 not needed anymore with lts-20.05
  • --with-hpack hpack to fix support for GHC2021: How to override default-language to GHC2021 (for use with GHC9.2.2)聽commercialhaskell/stack#5739

Enabling the CI requires installing a GitHub Application to the org/repository.

Example build: https://cirrus-ci.com/task/6248730202996736

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant