GitHub Actions: register first, then route jobs
- Set up access: Create a self-hosted runner in your repository or organisation’s Actions settings, and select the macOS ARM64 package. Get the installation package, registration URL, and short-lived token from your current CI settings page.
- Set up the account: Use a dedicated macOS build account to extract the package, then run the command generated on the page:
./config.sh. Keep the runner installation directory separate from your build artefacts. - Add labels: For the machine model, use
m4orm4pro, then add a label for its purpose, such asios-build. The runner must match every label required by the workflow. - Install the service: From the runner directory, run
./svc.sh install,./svc.sh start, then check the service with./svc.sh status. macOS user-level services are tied to the login session, so verify separately that the runner recovers after a restart. - Switch over gradually: First, run a task that only checks the system and Xcode versions. Once the runner is online and accepting jobs, move over archiving, signing, and upload tasks.
Set the target label in your workflow
jobs:
verify:
runs-on: [self-hosted, macOS, ARM64, m4pro]
steps:
- run: uname -m
- run: xcodebuild -version
Expected result: The runner appears online in CI settings and shows Idle when no job is running. A test job actually runs on this machine.