macOS and iOS builds on your Mac | RelayRunner Docs

macOS and iOS builds on your Mac

Run macOS jobs on a Mac you own, and fall back to hosted Macs when it's busy or asleep.

Copy pageView as Markdown For AI agents

macOS minutes on GitHub cost about ten times Linux minutes, so iOS and Mac builds are often most of a CI bill. A Mac mini or the MacBook you already use can run the same jobs for free.

1. Connect the Mac

Section titled “1. Connect the Mac”

On the Mac:

npx relayrunner connect --macos

--macos matters on a Mac with Apple silicon, which otherwise runs its jobs in Linux VMs. With it, macOS jobs run on the Mac itself, where Xcode is, and Linux jobs still run in VMs.

Leave it running. A Mac mini that stays on makes a good dedicated runner; set it to not sleep in System Settings.

2. Route the macOS jobs

Section titled “2. Route the macOS jobs”

npx relayrunner init

init gives each macos-* job a relay like this:

relay-build:

uses: relayrunner/actions/.github/workflows/relay.yml@v1

with:

machine: macOS

github: macos-latest

machine: macOS means only Macs take it, never a Linux machine. Use macOS, ARM64 to require Apple silicon.

3. Set the order

Section titled “3. Set the order”

Keep Self-hosted above GitHub-hosted on the Router page. The Mac takes the job when it’s free, and a hosted Mac takes it otherwise.

Things to check

Section titled “Things to check”

A Mac you don’t own

Section titled “A Mac you don’t own”

A leased or cloud Mac works the same way: run relayrunner connect on it.