crystal-lang / distribution-scripts

40 stars 23 forks source link

[WIP] make darwin work for MacOS M1 #268

Open miry opened 7 months ago

miry commented 7 months ago

I am contributing to this repo to be able build and test crystal on Darwin arm64. There are some work required to be done. I am going to split my changes in small PRs:

Extra:

Testing

miry commented 7 months ago

I made my setup to build at least something after few days of working. My dirty working branch: https://github.com/crystal-lang/distribution-scripts/compare/master...miry:distribution-scripts:125-support-arm

Next step is to split it to small prs.

miry commented 7 months ago

From chat:

distribution-scripts is basically just outsourced packaging part of https://github.com/crystal-lang/crystal. It's used only from the main repo's CI. So in order to test changes, we push a special branch on crystal which updates the reference of distribution-scripts to the branch with your changes.
sed -i -E "/distribution-scripts-version:/{n;n;n;s/default: \".*\"/default: \"$yourCommitSHA\"/}" .circleci/config.yml