Term · Self-hosted runner
A runner is the machine that actually executes jobs in a continuous integration service. Taking GitHub Actions as the example, a GitHub-hosted runner is a clean virtual machine allocated temporarily for each job; a self-hosted runner is a machine you deploy and manage yourself, which, after you install GitHub's runner application and register it with a repository or organization, picks up and executes jobs. GitHub's documentation explains that a self-hosted runner lets you decide the hardware, operating system and preinstalled tools, and that using one incurs no additional Actions charge, but the machine cost and the updating of the system and software are your responsibility, and it does not return to a clean state after each job.
How it relates to renting a remote Mac
Jobs that compile iOS and macOS apps must run on macOS, so the runner for such projects can only be a Mac: either the platform's macOS runners billed by usage, or one you connect yourself. A rented Mac mini can serve as the latter.
What fits when you do this on a airankrush machine:
- The whole machine is dedicated to you during the rental term and the customer account is an admin account, so you can install the runner application, Xcode and build tools yourself.
- According to GitHub's documentation, a runner needs outbound HTTPS connections from the machine and does not require opening ports to the outside, so no change to the network configuration is involved.
- The machine is not shut down, so build caches can stay on local disk for reuse next time.
Limits to think through:
- The machine is on US residential broadband, not a data-center leased line, and we do not commit to an uptime figure. Your release pipeline needs to tolerate an occasional re-run.
- Jobs are not isolated from one another: files left by one job are visible to the next. GitHub recommends preferring runners that are discarded after use to limit exposure; a public repository that accepts outside contributions is not suited to a long-lived machine. Follow GitHub's security documentation.
- Do not shut the machine down yourself. Whether the runner comes back automatically after a restart depends on whether you installed it as a service that starts at login.
Requirements: GitHub documentation: Self-hosted runners. Whether it suits you: use cases for an always-on build machine.
FAQ
Is a self-hosted runner always cheaper than paying by the minute?
Not necessarily. On one side is a fixed machine cost plus your own maintenance time; on the other is billing by actual usage. Projects with a small build volume often do not use up the platform's included allowance. Add up your real usage over the last few months first, then compare it with the prices on the plans page.
Can GitLab, Jenkins and others be connected the same way?
The principle is the same: install each one's agent on the machine and register it with the server. Their requirements for system version and connection method differ; follow each one's official documentation.
Related
- What are build minutes, and why do macOS builds use them up so fast?
- Remote Mac vs GitHub Actions macOS runner or Codemagic: which should I use?
- What is fastlane, and which manual iOS release steps does it automate?
- What is an App Store Connect API key, and why do build machines use one?
- How to keep long tasks running on a remote Mac mini after you disconnect
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support