Setting up a self-hosted GitHub Actions runner on a Mac mini
A Mac mini can run your GitHub Actions jobs for macOS and Xcode builds. This guide covers registering the runner, installing it as a launchd service, login sessions, labels, ephemeral setups, updates and GitHub's warning about public repositories.

A self-hosted runner lets GitHub Actions send jobs to a Mac you control instead of a GitHub-hosted machine, and a Mac mini can fill that role for Xcode builds. This guide follows GitHub's documentation as checked in November 2026 and flags where it is silent.
Register the runner
Registration starts in the web interface, as GitHub's guide to adding self-hosted runners describes. In a repository, open Settings, then Actions, then Runners, click New self-hosted runner and select your Mac's operating system image and architecture. In an organization, an organization owner takes the same path but clicks New runner, then New self-hosted runner.
The commands are shown in the GitHub interface when you add a runner, so copy them from there. They download and extract the runner application, then run the config script, which needs the destination URL and an automatically generated token that expires after one hour.
Start the runner application in the terminal to test it. When it is ready, the terminal shows a check mark with "Connected to GitHub", then "Listening for Jobs", and the runner appears under Runners with its status. It accepts jobs only while the application is active.
Run it as a launchd service
For unattended use, install the runner as a service. GitHub's page on configuring the runner as a service describes a default launchd configuration for macOS. Add the runner to GitHub first, stop the application if it is running, and run these in the runner's directory:
./svc.sh install
./svc.sh start
./svc.sh status
./svc.sh stop
./svc.sh uninstall
Stop the service before you uninstall it. For a custom launchd definition, GitHub suggests the plist template at actions-runner/bin/actions.runner.plist.template as a reference; a customized service must always start the runner through the runsvc.sh entry point.
Why the login session matters
GitHub's service page does not say which user the service runs as or whether it needs a logged-in session. However, GitHub's macOS service script writes its plist to ~/Library/LaunchAgents, where an individual user's launch agents live, and Apple's archived launchd guide says a user agent runs only while that user is logged in.
Our reading, which you should test, is that the default service starts only after that user logs in. Code signing, UI tests and other jobs that use the login keychain or a GUI session can depend on that session too. Reboot the Mac and, before anyone logs in, check whether the runner comes back online and those jobs pass.
If you choose automatic login, Apple's support article explains the setting and lists FileVault being turned on as one reason it may be unavailable, so treat it as a security decision.
Labels and routing
GitHub's page on using self-hosted runners in a workflow lists the labels a runner receives automatically: self-hosted; linux, windows or macOS for the operating system; and x64, ARM or ARM64 for the architecture. You can add custom labels at any time; to create a runner without the defaults, the page says to pass --no-default-labels.
In a workflow, runs-on takes a list, and the labels work cumulatively: a runner must carry every listed label to be eligible. GitHub's example adds a custom label:
runs-on: [self-hosted, linux, x64, gpu]
For a Mac, the same pattern gives [self-hosted, macOS, ARM64]. That is our extrapolation; the documentation's examples use Linux. A custom label such as xcode or a machine name helps you target one Mac among several.
Ephemeral or persistent
A persistent runner keeps caches and toolchains between jobs, which can save time, but leftovers from one job can affect the next. An ephemeral runner is de-registered after it has processed one job, and the self-hosted runners reference recommends them for autoscaling. Registration takes one extra flag:
./config.sh --url https://github.com/octo-org --token example-token --ephemeral
Cleaning up stays with you: the reference leaves wiping the machine after de-registration to your own automation, and recommends forwarding runner logs to external storage before an ephemeral autoscaling setup goes into production. Just-in-time runners, created through the REST API, are an alternative, but GitHub's security guidance warns that re-using hardware for them can risk exposing information. A single physical Mac running job after job is re-used hardware.
Security: keep public repositories away
GitHub's secure use reference says self-hosted runners "should almost never be used for public repositories", since any user can open a pull request against one and compromise the machine. Self-hosted runners also carry no guarantee of clean, ephemeral virtual machines, and untrusted workflow code can compromise them persistently. Even in private and internal repositories, the page warns, anyone who can fork the repository and open a pull request could reach secrets and the GITHUB_TOKEN.
It also asks what sensitive data lives on the runner, such as private SSH keys and API access tokens. For a Mac holding signing certificates, keep secrets off the machine where you can and give the runner's account only what its jobs need.
Keep it updated
Runners update their own application automatically by default, but GitHub's overview of self-hosted runners leaves the operating system and all other software to you. You can switch runner updates off at registration:
./config.sh --url https://github.com/YOUR-ORGANIZATION --token EXAMPLE-TOKEN --disableupdate
You must then update by hand, and new Actions features can need a newer runner. GitHub's sources differ on the deadline: in November 2026 the reference page said 63 days after a new release, while a June 2026 changelog said 30 days. After that, GitHub stops assigning jobs to the runner, and a required critical security update holds jobs back until it is installed.
The reference page, checked in November 2026, requires macOS 11.0 (Big Sur) or later and lists both x64 and ARM64 for macOS. The public preview note on the ARM64 line follows the Windows entry, and the page source applies it to Windows only. Confirm both before planning hardware.
Sources
- GitHub Docs: Adding self-hosted runners
- GitHub Docs: Configuring the self-hosted runner application as a service
- GitHub actions/runner: macOS service script (darwin.svc.sh.template)
- Apple Developer Documentation Archive: Creating Launch Daemons and Agents
- Apple Support: How to log in automatically to a Mac user account
- GitHub Docs: Using self-hosted runners in a workflow
- GitHub Docs: Self-hosted runners reference
- GitHub Docs: Secure use reference
- GitHub Docs: Self-hosted runners
- GitHub Changelog (June 12, 2026): Minimum version enforcement timeline for self-hosted runners
- GitHub Docs source (github/docs): self-hosted runners reference


