Índice do artigofaltam 5 min de leitura
The macOS runner is usually the most expensive (in time and money) and the most sensitive (environment) part of a CI/CD setup.
If you need Xcode, codesign, notarization or macOS-specific tests, there are not many "shortcuts": you need macOS at some point in the pipeline.
This post is part of the series:
CI/CD series map
- A guide to Git CI/CD for small teams: performance, caching and runners
- GitLab CI: runner tags and job routing
- CI/CD caching: how to design keys and avoid stale caches (GitHub and GitLab)
- Docker layer caching in CI: BuildKit, buildx, cache-from and cache-to
- Dedicated CI/CD runner: when it pays off and how to plan it in a small team
- macOS runners in CI: Intel vs Apple Silicon, costs and pitfalls
1) When you really need a macOS runner
Use a macOS runner only when necessary, for example:
- iOS/macOS builds with Xcode
- codesign and notarization
- tests that depend on macOS frameworks
Avoid:
- running lint, general unit tests or docker build on macOS
- turning the macOS runner into the "default" runner
2) GitHub Actions: macos-latest, Intel and ARM
In GitHub Actions, runs-on defines the runner type.
The important detail: there are Intel and Apple Silicon (ARM64) variants, and the label you write decides which one gets the job. In the official hosted runners reference, checked on November 11, 2026, the split is as follows:
Label in runs-on | Architecture | Standard machine |
|---|---|---|
macos-latest, macos-15, macos-26, xcode-27 | arm64 (M1) | 3 vCPUs, 7 GB of RAM |
macos-15-intel, macos-26-intel | Intel (x64) | 4 vCPUs, 14 GB of RAM |
In other words: macos-latest is Apple Silicon today. Anyone who still depends on Intel needs to request the -intel label explicitly. The table changes as GitHub launches and retires images, so check the page before pinning a label.
The architecture affects:
- build time
- compatibility of native dependencies and community actions (the documentation warns that not all of them are compatible with arm64)
- caching (caches do not carry over well between architectures)
- signing for on-device testing: arm64 runners do not have a fixed UDID, because Apple does not offer that feature. Intel runners have a static UDID, which can be registered in the Apple Developer account when the flow requires it.
Another documented limitation: arm64 macOS runners do not support nested virtualization, so you cannot run another VM inside the job.
Practical tips:
- include
runner.archin the cache key - write the version label (
macos-15,macos-26) instead ofmacos-latestwhen the build depends on a specific Xcode version, so you are not caught by surprise whenlatestmoves forward - split workflows by architecture when needed
3) What a macOS minute costs
The title promises costs, so here are the official numbers (tables checked on November 11, 2026).
GitHub Actions. In public repositories, standard hosted runners are still free and unlimited. In private repositories, minutes are deducted from a monthly dollar balance included in the plan and, once the balance runs out, billed separately:
| Hosted runner (private repository) | Price per minute (USD) |
|---|---|
| Linux 2 cores (x64) | 0.006 |
| Windows 2 cores (x64) | 0.010 |
| macOS 3 or 4 cores (M1 or Intel) | 0.062 |
| macOS 12 cores (larger runner, Intel) | 0.077 |
| macOS 5 cores M2 Pro (larger runner) | 0.102 |
A standard macOS minute costs about ten times more than a Linux minute. A 10-minute job costs US$ 0.06 on Linux and US$ 0.62 on macOS. GitHub rounds each job up to the next whole minute.
The included balance also runs out fast: the Free plan includes US$ 12 per month and Team, US$ 18. Spent only on standard macOS, that comes to roughly 190 and 290 minutes per month, respectively. Larger runners (the last two rows) only exist on the Team and Enterprise Cloud plans and are billed even in public repositories.
Self-hosted runners are not billed by GitHub and do not consume the included balance. The cost becomes something else: the Mac, power, network and the hours of whoever keeps Xcode, certificates and updates up to date.
GitLab. GitLab.com's hosted macOS runners are still in beta and only exist for the Premium and Ultimate plans (and open source programs). Usage is measured in compute minutes multiplied by a cost factor:
| Hosted runner on GitLab.com | Cost factor |
|---|---|
| Linux x86-64 small (default) | 1 |
macOS M1 medium (saas-macos-medium-m1) | 6 (beta) |
macOS M2 Pro large (saas-macos-large-m2pro) | 12 (beta) |
A 10-minute job on M1 medium consumes 60 minutes of the group's quota. Both machine types are Apple Silicon; to build for an x86-64 target, the documentation says to emulate with Rosetta 2. The documentation also warns that machine supply is limited, so the job may wait in the queue.
How to decide between hosted and a dedicated Mac. Add up the macOS minutes of a typical month and multiply by the rate (or by the cost factor, on GitLab). If the number is small and irregular, hosted is cheaper and requires no maintenance. If the team runs iOS builds several times a day, a dedicated Mac as a self-hosted runner tends to pay off, as long as someone takes on the maintenance and isolation described in the next section. For planning this kind of machine, see the post on dedicated runners.
4) GitLab Runner on macOS: watch the executor and security
For GitLab Runner installed on your own Mac (Intel or Apple Silicon, each with its own binary), the official documentation recommends the shell executor for iOS and macOS builds.
This means jobs run directly on the host.
Practical recommendation for small teams:
- treat the macOS runner as dedicated and isolated
- limit which projects can use it
- document what runs there (Xcode, certificates, dependencies)
5) Performance: where to optimize first
What usually brings the biggest gains:
- reducing the tasks that run on macOS (keep only the essentials); each minute removed from there is worth about ten Linux minutes on GitHub
- dependency caching (with well-designed keys)
- parallelizing tests outside macOS when possible
What brings smaller gains (but helps):
- caching DerivedData with a strategy (careful not to contaminate it)
- pre-installing tools to reduce setup
Final checklist
- The macOS runner only runs jobs that really need macOS.
- The architecture (Intel vs ARM) is explicit in
runs-on(for examplemacos-15ormacos-15-intel) and in the cache keys. - Monthly spend on macOS minutes has been estimated and compared with the cost of a dedicated Mac.
- The macOS runner is treated as dedicated/isolated.
- There is a strategy for handling certificates and secrets securely.
- The pipeline is observable (queue vs execution time, and variation).




