Closed ViRb3 closed 8 months ago
Well I am quite late, but I integrated mac support into my github workflow. Thanks for giving me a reference since I don't even own a Mac myself. I only added x86_64, since arm github workflows cost money.
I only added x86_64, since arm github workflows cost money.
@styler00dollar You can try FlyCI's M1 and M2 runners. They are on average 2x faster and 2x cheaper than GitHub's AND we have a free tier for OSS projects (see below).
jobs:
ci:
- runs-on: macos-latest
+ runs-on: flyci-macos-large-latest-m1
steps:
- name: 👀 Checkout repo
uses: actions/checkout@v4
Since your repo is public, FlyCI offers 500 mins/month of free M1 runner usage with the flyci-macos-large-latest-m1
runner for public projects.
Don't hesitate to contact us in case the free tier doesn't suit your needs or you experience any issues with the runners. Our team is here to support you!
Best Regards, Veselina Radeva Product Manager at FlyCI
Here are some changes that I had to make in order to get this working on MacBook Pro M1 Max. Note that Apple ships with its own clang compiler, but it does not support the OpenMP extension necessary to compile this repo, so you have to use clang from brew.
I'm not sure what is the best way to incorporate these changes in your repo to keep compatibility with Linux/Windows, and since my C++ build system knowledge is very bad, I am leaving this for grabs. Thanks!