Skip to content
RentCloudMac

How do you set up a self-hosted GitHub Actions runner on a Mac?

A self-hosted runner turns a rented Mac into the macOS machine of your workflows: no per-minute bill from GitHub, your Xcode versions, your caches.

Updated , by the RentCloudMac team

Quick answer

How do you set up a GitHub Actions runner on a Mac?

Copy the download and ./config.sh --url … --token … commands from Settings, Actions, Runners, New self-hosted runner, run them on the Mac, then ./svc.sh install and ./svc.sh start. On a RentCloudMac Ship at $139 a month, paid in Monero or USDT, the runner is free of GitHub minutes.

In brief
  • Self-hosted runners do not use GitHub's included minutes: GitHub lists them as free usage.
  • Commands come from GitHub: the New self-hosted runner page prints the exact version, checksum and token for macOS ARM64.
  • Run it as a service: ./svc.sh installs a LaunchAgent that starts with your user session.
  • Labels such as self-hosted, macOS, ARM64 plus your own (xcode-26) route jobs to the Mac.
  • Or let the team do it: the CI runner setup option registers it for you; the CI pack bundles it with Ship for 12 months for $1,783.20.

Which steps register the runner?

  1. Prepare the Mac

    Install Xcode, accept its licence and add the iOS platform, so the first job does not fail on tooling.

  2. Open the runner page

    In the repository or organisation, go to Settings, Actions, Runners, New self-hosted runner, and choose macOS and ARM64.

  3. Download and verify

    Run the mkdir, curl and shasum lines exactly as GitHub prints them; they carry the current version.

  4. Configure

    Run ./config.sh with the URL and the one-hour token from the page; give a name and extra labels.

  5. Install as a service

    Run ./svc.sh install then ./svc.sh start; ./svc.sh status confirms it is listening for jobs.

  6. Target it in a workflow

    Set runs-on to your labels and push a commit to watch the job land on the Mac.

On the Mac (version and token come from GitHub's page)
mkdir actions-runner && cd actions-runner
curl -o actions-runner-osx-arm64-VERSION.tar.gz -L \
  https://github.com/actions/runner/releases/download/vVERSION/actions-runner-osx-arm64-VERSION.tar.gz
tar xzf ./actions-runner-osx-arm64-VERSION.tar.gz

./config.sh --url https://github.com/OWNER/REPO --token TOKEN \
  --name cloudmac-01 --labels xcode-26 --unattended

./svc.sh install
./svc.sh start
./svc.sh status
.github/workflows/ios.yml
name: iOS
on: [push]
jobs:
  build:
    runs-on: [self-hosted, macOS, ARM64, xcode-26]
    steps:
      - uses: actions/checkout@v4
      - run: xcodebuild -scheme MyApp -destination 'platform=iOS Simulator,name=iPhone 17' test

Why does the runner need a logged-in session on macOS?

Because svc.sh installs a LaunchAgent, which runs inside a user session, and the Simulator and UI tests also need that session. After a reboot, the runner starts when the user logs in. On a remote Mac, turn on automatic login for the runner's user in System Settings, Users and Groups (it is unavailable while FileVault is on), or log in once through Screen Sharing after each reboot.

A LaunchDaemon would start without a login, but it cannot drive the Simulator's window server reliably, so most iOS teams keep the agent. The background on this choice is in GitHub Actions macOS runner.

How does a self-hosted Mac runner compare with a GitHub-hosted one?

Self-hosted runner on a rented Mac vs GitHub-hosted macOS runner, read on 3 December 2026
PointSelf-hosted on RentCloudMacGitHub-hosted macOS
BillingMonthly rent, $139 for ShipPer minute in private repositories
GitHub minutes usedNone (free usage)Yes, from the included allowance
Machine state between jobsKept: caches, DerivedData, installed toolsFresh image each job
Xcode versionsWhatever you installThose on GitHub's image
MaintenanceYours (or the Managed Mac option)GitHub's
PaymentCrypto, no KYCCard or invoice through GitHub

Prices checked on

How do you keep a persistent runner clean?

Clean the workspace, cap DerivedData and never run untrusted pull requests on it. A persistent runner keeps files between jobs, which makes builds incremental but also lets one job affect the next. Use actions/checkout with clean: true, point DerivedData into the workspace with -derivedDataPath, and delete it on a schedule. GitHub advises against self-hosted runners on public repositories, because anyone opening a pull request could run code on your Mac.

Hardening steps are in how to secure a cloud Mac.

Which plan fits one runner, and which fits several?

Ship runs one runner for a small team; Matrix (M4 Pro · 64 GB · 1 TB) runs several runners side by side. Each runner instance needs its own folder and its own config.sh. RentCloudMac compared 7 sellers on 3 December 2026: none accepted crypto, so a self-hosted runner paid in Monero is only possible here. The ranking of CI options is in best self-hosted macOS CI.

What questions come up about Mac runners?

Are self-hosted runners really free on GitHub?

GitHub's billing page lists self-hosted runners among the usage that stays free and does not reduce included minutes. You pay only for the Mac.

Does the runner need an open port?

No. It connects out to GitHub over HTTPS and long-polls for jobs, so the Mac's firewall can block all inbound traffic except SSH.

Can I use GitLab instead?

Yes. GitLab Runner installs with Homebrew and registers with gitlab-runner register; the CI runner setup option covers GitHub or GitLab.

How do I update the runner?

The runner updates itself by default when GitHub publishes a new version. Keep Xcode updates manual so a release build is never surprised.

What happens if the Mac reboots?

The LaunchAgent starts again when the runner's user logs in, which is why automatic login matters on a remote Mac.

Verdict
  • Copy GitHub's own commands, run config.sh, then svc.sh install and start: the runner is live in minutes.
  • Turn on automatic login so the agent and the Simulator come back after a reboot.
  • Ship is the usual runner Mac; the CI pack adds setup and priority support. See pricing.

Get the CI pack

Ship (M4, 24 GB, 512 GB) for 12 months, CI runner setup, Xcode and Fastlane setup, priority support for 12 months: $1,783.20, paid in crypto.

Sources (3)
  1. Adding self-hosted runners — GitHub
  2. Configuring the self-hosted runner application as a service — GitHub
  3. GitHub Actions billing — GitHub (read 2026-12-03)

Read next

from $92 a month

Rent a Mac