How to Deploy a GitHub Actions Self-Hosted Mac Runner? 2026

How to Deploy a GitHub Actions Self-Hosted Mac Runner? 2026

Use a macOS host that meets GitHub’s current Runner requirements, can reach GitHub Actions, and is safe for the code you plan to run; then register it and verify a real project workflow. A registered Runner is not a validated Xcode CI environment, and public or otherwise untrusted code should not run on a persistent self-hosted machine.

This guide is for developers who need macOS builds or tests in GitHub Actions.
It also helps CI engineers responsible for Runner registration, maintenance, and monitoring.
Small teams choosing a host will find the operational and security trade-offs before committing to self-management.

Before deployment: confirm the host and trust boundary

Start by checking whether the workflow really requires macOS. If it depends on Xcode, Apple-specific build tools, or macOS behavior, a macOS Runner is appropriate. If the job only compiles portable code or runs platform-neutral tests, keep that work on another suitable Runner and reserve Mac capacity for tasks that need it.

A self-hosted Runner is a machine you manage, not a GitHub-hosted virtual machine. You are responsible for its operating system, installed tools, availability, service account, network access, and cleanup between jobs. This can be a Mac in your own environment or a suitable remote Mac. Do not assume that every remote host is supported: check the current operating system, processor architecture, and network requirements in GitHub’s self-hosted Runner reference before choosing one.

Check these conditions before registration:

  • Operating system and architecture: Compare the host with the current requirements shown in GitHub’s documentation and the architecture options in the Runner settings. Labels should reflect the actual machine, not the architecture you hope to use.
  • Network reachability: The Runner needs outbound HTTPS access to GitHub Actions services. GitHub documents port 443 and the required network destinations in its Runner reference. If outbound traffic is filtered, ask the network owner to validate the documented destinations before troubleshooting workflow syntax.
  • Administrative access: Confirm that someone on the team can install and start the Runner, update the host, inspect logs, and restore service after a reboot. Registration does not replace these duties.
  • Toolchain readiness: Identify the required Xcode release, command-line tools, SDKs, dependencies, certificates, and project-specific environment variables. Verify that your access rights allow you to install and maintain them.
  • Code trust: Decide which repositories, branches, and workflows may use this host. A persistent machine can retain files, caches, or credentials between jobs, so do not route untrusted pull-request code to it without a deliberate isolation design.

For example, a small team may need macOS only for an application build and test stage, while its linting and documentation jobs can run elsewhere. Splitting those jobs reduces the number of tasks that depend on the Mac and makes Runner access easier to restrict.

Option Best fit Main trade-off Decision check
GitHub-hosted macOS Runner Workloads that need a managed Runner and do not require a persistent, customized host You work within the hosted environment and its available configuration Does the provided environment meet your Xcode and workflow needs?
Self-hosted Mac Runner A team that needs control over a Mac host, installed tools, or its operating environment Your team owns security, uptime, updates, and job cleanup Can someone maintain the host and enforce the repository trust boundary?
Remote Mac host A team that needs access to a Mac without placing one in its office Network access and remote administration become part of operations Can the host meet GitHub’s current requirements and your access policies?

Register the Runner in the right scope

Choose where to register before downloading anything. A repository Runner is managed for that repository. Organization or enterprise registration allows broader management, subject to the relevant permissions and Runner group settings. Use the narrowest scope that supports the workflows you need. The GitHub guide to adding self-hosted Runners explains the current settings-page flow and permission requirements.

Open the Runner settings at your chosen scope, start the add-Runner flow, and select macOS and the architecture that matches the host. Follow the commands shown there. GitHub supplies the current download and configuration instructions in that flow, so use those rather than copying a command from an old setup note.

The registration token is temporary. GitHub states that a registration token expires after one hour; retrieve a fresh one if it has expired, and follow the instructions on the settings page when using it. Never place it in a repository, shared script, terminal recording, or workflow log.

Before moving on, record the chosen scope, the host’s intended Runner name, the labels shown during setup, and the person responsible for access. These details help diagnose scheduling problems later. Keep the record free of tokens and other secrets.

Install and configure the application on macOS

On the Mac, follow the download, extraction, and configuration commands supplied by GitHub. Run the configuration script with the target repository or organization URL and the temporary registration token. When the script prompts for a Runner name, choose a descriptive name that helps your team identify the machine without exposing sensitive details.

During configuration, review the labels rather than accepting assumptions. A workflow can target a Runner by labels, so an incorrect architecture or missing custom label can leave a healthy Runner unused. Also check the work directory and the account under which the Runner will operate. Make sure that account can access the required project tools without granting unnecessary access to personal files or unrelated credentials.

After configuration, confirm all of the following in GitHub and on the host:

  • The Runner appears in the expected repository, organization, or enterprise scope.
  • Its status is online when the application is running.
  • Its labels match the host and the workflow’s routing requirements.
  • The configured work directory has enough access for jobs and an agreed cleanup policy.
  • The service or foreground process runs as the intended account.

Registration is only the point at which GitHub knows about the machine. It does not confirm that Xcode is installed, that project dependencies resolve, or that the workflow can use the Runner. For Xcode-related setup, follow Apple’s current Command Line Tools installation documentation, then verify the tools your project actually invokes.

Start the Runner and route a test job

Start the Runner in a foreground session first. This makes it easier to see whether it connects and waits for work before you add service management. If it does not connect, check the Runner output and the host’s outbound network path against GitHub’s documented requirements. Do not treat a workflow that remains queued as proof that the Mac itself is broken; scheduling, labels, group access, and network connectivity are separate checks.

For continuous operation, use the service instructions provided for macOS. GitHub documents the service configuration flow, including the Runner’s service scripts, in its macOS service setup guide. Confirm the service starts under the intended account and returns after a planned restart. A service that starts only in an interactive terminal is not yet a dependable CI host.

Create a small workflow that targets the Runner’s actual labels. For example, use the labels shown on the Runner settings page in the runs-on value rather than guessing:

name: Mac runner check

on:
  workflow_dispatch:

jobs:
  verify:
    runs-on: [self-hosted, macOS, ARM64]
    steps:
      - name: Identify the host
        run: |
          sw_vers
          uname -m
          xcode-select -p
          xcodebuild -version

Replace the architecture label in this example if the registered machine uses a different one, and make sure every listed label exists on that Runner. GitHub’s workflow syntax reference describes runs-on label matching. The self-hosted Runner workflow guide explains how to target self-hosted machines.

Run this minimal job from a trusted branch. Confirm that it starts on the intended host, prints the expected macOS and architecture details, and reports the Xcode installation you planned to use. If the job stays queued, compare its labels and Runner group permissions with the workflow. If it starts but a command fails, inspect the command output and environment before changing Runner registration.

Keep the first test small and low-risk. Do not use a workflow that prints secrets or checks out untrusted code merely to prove the Runner can accept a job.

FAQ: common deployment checks

What host conditions should you check before using a Mac Runner?

Check GitHub’s current operating system, processor architecture, and network requirements for the Runner application. Confirm that the host can install and run it, reach GitHub Actions, and provide the tools the workflow needs. A macOS cloud server is not automatically suitable just because it offers macOS access; verify the specific host against the current documentation and your team’s security requirements.

How do you add a macOS machine to GitHub Actions?

Choose a repository, organization, or enterprise scope where you have Runner-management permission. In its settings, select the macOS option and matching architecture, then use the page’s current download and configuration commands on the host. Keep the temporary registration token out of source control and logs. Once registered, confirm the Runner’s name, labels, scope, and online status before scheduling a test job.

Why can a registered Runner remain idle?

Registration and job scheduling are different stages. Check that the Runner is online, that the workflow’s runs-on labels match its registered labels, and that the applicable Runner group allows the repository to use it. Also confirm that the service is running and the host can reach GitHub Actions. Use the Runner diagnostics and GitHub’s monitoring and troubleshooting guide to separate connectivity issues from workflow configuration problems.

How do you know an Xcode CI job succeeded on the remote Mac?

Check the job logs for the host’s macOS version, processor architecture, selected developer directory, and Xcode version. Then run a representative build or test from the project, not just a Runner-identification command. Review the exit status, test output, and any artifacts the workflow should retain. If the Runner accepted the job but the build failed, inspect project dependencies and signing setup separately from Runner status.

Validate the real Xcode workflow

Once the routing test passes, run a representative project workflow. Start with the same checkout, dependency installation, build, and test commands your team intends to use in CI. Compare the job output with the expected macOS version, processor architecture, selected developer directory, and Xcode toolchain. A green test command alone is not enough if it ran on a different host or skipped a required project stage.

Check the workflow in separate parts:

  • Dependencies: Confirm that package resolution and any required setup complete on the Mac without relying on files left from an earlier job.
  • Build: Run the project’s normal build command and capture its exit status. If it fails, use the build output to distinguish a missing SDK or tool from a project configuration issue.
  • Tests: Confirm that the intended test targets ran and that failures appear in the workflow result rather than being hidden by a later successful command.
  • Artifacts: Verify that expected outputs are uploaded or otherwise retained according to your workflow design. A successful build that leaves no usable artifact may not satisfy the release process.
  • Reproducibility: Repeat the workflow from a clean or deliberately prepared state. Record tool versions and setup steps so the next maintainer can reproduce the result.

For Xcode CI, pay particular attention to signing and secrets. A build that compiles without signing does not prove that an archive or distribution workflow is ready. Limit access to signing material, avoid printing credentials, and make the workflow’s permissions explicit. GitHub’s secure use guidance explains the risks of running workflows and handling credentials, especially when code comes from outside the trusted repository boundary.

If a workflow fails, classify the failure before changing the Runner. A queued job points first to labels, group access, or connectivity. A started job with a missing tool points to host preparation. A build or test failure after setup usually needs project-level diagnosis. This separation prevents a successful registration from being mistaken for a successful Xcode build.

Maintain the host and choose an operating model

A self-hosted Mac Runner remains part of your CI system after the initial setup. Assign an owner for macOS updates, Runner application updates, service restarts, monitoring, and recovery. Define how the team will review Runner status and logs, and how it will respond when jobs remain queued or a service stops. GitHub’s monitoring and troubleshooting documentation is a useful reference when you write that runbook.

Set a job cleanup policy for the work directory, caches, temporary files, and credentials. Decide which workflows can use the Runner and which branches or repositories are trusted. GitHub warns that self-hosted Runners can be exposed to compromise when they run untrusted workflow code; its secure use documentation should inform your repository and workflow policy. Do not reuse a persistent host for public contributions just because a test job appears to work.

There are real benefits and costs to weigh:

  • Self-management gives you control over the Mac environment and its installed tools, but your team owns patching, uptime, permissions, and cleanup.
  • A remote Mac can avoid placing a physical machine in your office, but remote access and host administration still need an owner.
  • GitHub-hosted options reduce host maintenance, but may not provide the persistent or customized environment your workflow requires.

If your team needs a dedicated Mac continuously for stable, sustained workloads, owns the necessary maintenance capacity, or depends on physical interfaces, managing a host you control may be the right fit. If you only need a Mac for a project phase, a test cycle, or an evaluation—and do not want to buy and maintain hardware—renting a Mac through rebootmini can be a more flexible way to try the workflow. Compare that with the cost and responsibility of self-management in the available Mac plans, and use the getting-started guide to review the remote environment setup. Keep the same security checks either way: confirm the host requirements, restrict workflow access, and validate the real Xcode job before relying on it.

Frequently asked questions

What does a Mac host need before it can run a self-hosted Runner?

Use a macOS host that meets GitHub’s current Runner requirements for operating system and processor architecture, can reach the required GitHub Actions endpoints, and can install and run the Runner application. Also confirm that your workflow genuinely needs macOS. A machine that registers successfully may still lack the Xcode version, signing setup, or project dependencies your build requires.

How do I add a macOS host to GitHub Actions?

Open the repository, organization, or enterprise Runner settings where you have permission to manage runners. Choose the macOS option and the matching architecture, then follow the commands shown on that page to download, configure, and register the application. Treat the registration token as temporary: use it as instructed, and never commit it to source control or print it in job logs.

Why is a registered Runner not receiving a workflow job?

Check that the Runner is online, that the workflow targets labels the Runner actually has, and that its Runner group permits the repository to use it. Confirm that the service is running under the expected account and that outbound access to GitHub Actions is available. A successful registration only proves that setup completed; it does not prove that a workflow can be scheduled there.

How can I verify that an Xcode workflow really ran on the remote Mac?

Have the job print its macOS version, processor architecture, selected developer directory, and Xcode version. Then run a representative project build or test and review the exit status, test results, and retained artifacts. Compare the logs with the Runner’s own status and service logs so you can distinguish a connection or scheduling failure from a project, dependency, or signing failure.

Further reading

Run Your macOS CI Jobs on a Dedicated Mac

Choose a rebootmini Mac mini with Apple Silicon M4 or M4 Pro and 16GB, 24GB, or 64GB of unified memory.

Verify your experiment requirements

Compare model size, unified memory, and billing period, then choose a dedicated physical machine.