ncspot icon indicating copy to clipboard operation
ncspot copied to clipboard

Build for macos-arm64 (M1 Macs)

Open jacksongoode opened this issue 2 years ago • 8 comments

Anything preventing this?

jacksongoode avatar Jun 01 '22 21:06 jacksongoode

There's no macOS arm64 build environment for GitHub actions yet, unless it's self-hosted: https://github.com/actions/virtual-environments/issues/2187

hrkfdn avatar Jun 02 '22 19:06 hrkfdn

Ah I thought they had recently rolled it out! Darn, well I guess emulation might be possible? No worries if it's too much effort.

jacksongoode avatar Jun 02 '22 19:06 jacksongoode

Unfortunately not. Maybe it can be cross-compiled, but I haven't tested it yet, as the benefit is rather small. Happy to take a PR though :)

hrkfdn avatar Jun 02 '22 19:06 hrkfdn

Unfortunately not. Maybe it can be cross-compiled, but I haven't tested it yet, as the benefit is rather small. Happy to take a PR though :)

I can assist with providing an M1 binary. I will try to compile it tomorrow and see if it goes well. If it does, expect a file.

ElotonSotilas avatar Jul 14 '22 00:07 ElotonSotilas

Thanks, that's kind of you. I have access to an M1 machine myself, but the problem to solve here is to cross-compile from x86_64 to M!/arm64 so that it can be done in CI.

hrkfdn avatar Jul 14 '22 16:07 hrkfdn

FYI, M1 runners are now supported: https://github.com/actions/runner-images/issues/8439

H12 avatar Oct 31 '23 19:10 H12

FYI, M1 runners are now supported: actions/runner-images#8439

You can also use FlyCI's M1 and M2 runners. Our runners are on average 2x faster and 2x cheaper than GitHub's AND we have a free tier for OSS projects (see below).

Install Instructrions

Easily replace your M1 runners:

jobs:
 ci:
-    runs-on: macos-latest
+    runs-on: flyci-macos-large-latest-m1
   steps:
   - name: 👀 Checkout repo
     uses: actions/checkout@v4

Or try the M2 runners:

jobs:
  ci:
-    runs-on: macos-latest
+    runs-on: flyci-macos-large-latest-m2
    steps:
      - name: 👀 Checkout repo
        uses: actions/checkout@v4

Pricing

Processor vCPU RAM (GB) Storage Label Price on FlyCI Price on GitHub
M1 4 7 28 GB flyci-macos-large-latest-m1 $0.06 -
M1 8 14 28 GB flyci-macos-xlarge-latest-m1 $0.12 $0.16
M2 4 7 28 GB flyci-macos-large-latest-m2 $0.08 -
M2 8 14 28 GB flyci-macos-xlarge-latest-m2 $0.16 -

500 mins/month Free for Public Repos

If your repo is public, then FlyCI offers 500 mins/month of free M1 runner usage with the flyci-macos-large-latest-m1 runner.

Best Regards, Kiril Gantchev CEO and co-founder of FlyCI

kgantchev avatar Jan 15 '24 17:01 kgantchev

I suppose if someone wants to add the CI build, we can use this runner?

jacksongoode avatar Jan 15 '24 22:01 jacksongoode