1What you need
Mac runners are coming soon. Reserve a spot and we'll turn them on for your account when they're ready.
- A GitHub organization. A free one is fine. Personal GitHub accounts can't use Mac runners, so move the repositories to an organization first.
- Private repositories. Jobs from public repositories don't run on our Macs.
- An Entity Hosting account with a payment card on file. To connect, you need the owner, admin or technical role here, and you need to be an owner of the GitHub organization.
2Connect your organization
In the console, open Mac runners from the Overview and choose Connect an organization. GitHub opens with our app, Entity Hosting Runners. Pick your organization, choose All repositories or just the ones that should use Mac runners, and install it.
GitHub then asks you to authorize the app and sends you back to the console, where the organization shows under GitHub organizations.
The app can add runners to your organization and see the status of your jobs. It can't read your code. Each job checks out your code with GitHub's own token for that job, as on GitHub's runners.
3Use it in a workflow
Put one of our labels on a job, on its own:
eh-macos: 6 vCPU and 10 GB of memory, $0.04 a minute
eh-macos-large: 12 vCPU and 20 GB of memory, $0.08 a minute
jobs:
build:
runs-on: eh-macos
steps:
- uses: actions/checkout@v4
- run: |
xcodebuild -scheme MyApp \
-destination 'generic/platform=iOS Simulator' build | xcbeautify
A Mac picks the job up as soon as one is free. Each job runs in its own virtual Mac, made fresh for it and deleted when it ends, so nothing carries over from one job to the next except your build cache.
4What's on the Mac
The current macOS, and the current and previous Xcode with their iOS simulators. /Applications/Xcode.app is the newest, and each one is also at /Applications/Xcode_<version>.app. To build with another, run sudo xcode-select -s /Applications/Xcode_<version>.app in a step, or set DEVELOPER_DIR.
Homebrew, with git, Git LFS, jq, the GitHub CLI, Node.js, CocoaPods, fastlane, SwiftLint, XcodeGen and xcbeautify. Install anything else in a step with brew install. You have sudo, and what you install is gone when the job ends.
To run tests in a simulator, xcrun simctl list devices available lists the devices you can pick.
5Keep a build cache
Every job sees a folder at $EH_CACHE that's kept for your later jobs. Put package downloads and build output there, for example:
- run: xcodebuild -scheme MyApp -derivedDataPath "$EH_CACHE/DerivedData" build
The folder belongs to your account, and other customers never see it. It stays on the Mac that ran the job. We send your jobs back to that Mac when it's free, but a job that lands on another Mac starts with an empty folder. Two of your jobs can use it at the same time, so give jobs that run in parallel their own subfolders.
When a Mac runs low on space, we clear the caches that haven't been used for the longest. Treat it as a speed-up, not as storage.
GitHub's own cache action works too, and follows your jobs to any Mac.
6Prices and billing
Standard jobs are $0.04 a minute and large jobs $0.08 a minute. We bill from when GitHub starts the job to when it ends, and round each job up to the next whole minute. Starting the virtual Mac isn't billed, and there's no minimum.
We invoice your Mac jobs after each month, or sooner if they pass your account's usage threshold, and charge your card. They count toward your monthly spending limit. Once you reach it, new jobs wait until the next month or until we raise the limit, so ask us if you need more. The Mac runners page shows this month's minutes, the cost so far and your recent jobs.
7When a job doesn't start
If GitHub shows Waiting for a runner to pick up this job, check that:
- the label is
eh-macos or eh-macos-large, on its own
- the repository is private, in an organization that's connected
- the app can see the repository: on GitHub, your organization's Settings > GitHub Apps > Entity Hosting Runners
- the organization's runner group lets the repository use it: Settings > Actions > Runner groups > Default
- your account is under its spending limit, on the Billing page
If all of that is fine, every Mac is busy and the job starts when one is free. GitHub cancels a job that waits 24 hours.
A job can run for up to 6 hours, GitHub's default. Set timeout-minutes lower to stop a stuck job sooner. We stop any job at 7 hours.
8Disconnect
On the Mac runners page, choose Disconnect next to the organization. Jobs already running finish, and new ones no longer run on our Macs. Then uninstall Entity Hosting Runners in your organization's settings on GitHub. If you uninstall it there first, we disconnect the organization for you.
9API and AI assistants
Everything here is also in the API (/mac-runners) and the AI assistant tools.