Your own GitHub Actions runner
Rent a whole Apple M6 Mac mini and make it a self-hosted runner for your repositories. Your jobs run on a machine nobody else uses, its disk keeps your caches between runs, and you pay a flat price instead of by the minute.
01Set it up
Sign in to your Mac over SSH (the command is on your machine page and in Connecting to your Mac), then download the script and run it with your repository's address. For a runner shared by a whole organisation, use the organisation's address instead.
curl -fsSLO https://macbuildcloud.com/scripts/github-runner.sh
bash github-runner.sh install https://github.com/you/your-app
It asks for a registration token. Get one on GitHub under Settings → Actions →
Runners → New self-hosted runner: it is the value after --token in the
Configure step, and it is valid for one hour. The token is read from the keyboard; it is
not shown on screen or saved to disk.
Then point a workflow at the runner:
jobs:
build:
runs-on: [self-hosted, macbuildcloud]
02What the script does
- Downloads the latest runner from GitHub's own releases and checks its SHA-256 against the value GitHub publishes. If they differ, it throws the download away.
- Registers the Mac with the labels
self-hosted,macOS,ARM64,macbuildcloudandapple-m6. - Adds one line to your user crontab so the runner starts again after the Mac restarts, without anyone logging in.
- Runs as your own account. Rental accounts are standard macOS users, so the script uses
no
sudoand writes nothing outside your home folder except that crontab line.
You can read the whole script before you run it.
Two more commands: bash github-runner.sh status shows whether the runner is
running, and bash github-runner.sh remove unregisters it from GitHub and deletes it.
03What we tested
On 24 November 2026 we ran the script on a fresh macOS virtual machine with Xcode 27.2, under a standard user set up the same way as a rental account. In order:
| Install | Registered and online on GitHub |
| A real workflow | sw_vers, xcodebuild -version and
whoami ran on the runner; the job finished with Succeeded |
| Restart | After the machine was shut down and started again, the runner came back on its own with nobody logged in |
| Remove | Unregistered from GitHub; the runner folder, the crontab line and the process were all gone |
04Good to know
- Use it with private repositories. GitHub advises against self-hosted runners on public repositories, because a pull request from a fork could run code on your machine.
- Signing. When the runner starts at boot there is no desktop session, so your login keychain is not unlocked. Import your certificate into a temporary keychain inside the job, which is what most signing setups for CI do anyway.
- Before your rental ends, run
bash github-runner.sh remove. When a lease ends your account on the Mac is deleted, and a runner left registered just shows as offline on GitHub until you remove it there. - Builds and the desktop at the same time. The runner and your own SSH or screen-sharing session can run side by side; they are the same user on the same Mac.
05What it costs
A dedicated Mac mini (Apple M6, 24 GB memory, 512 GB SSD) is $14.99 a day, $69 a week or $199 a month, with no contract and no setup fee. The minimum is 24 hours, and your first machine comes with a first-day money-back guarantee. Full details are on the pricing page.