Home/Q&A/Only one build machine: should I keep a cloud runner as a backup?

Only one build machine: should I keep a cloud runner as a backup?

Updated · airankrush

Direct answer

Yes, keep one. A single machine is a single point of failure with no standby that takes over automatically. The most practical backup is a cloud runner workflow that you rarely use but can switch to at any time.

Basis

  • What you rent is one physical Mac. The whole machine being dedicated to you also means there is only this one. On a hardware fault, a network outage at the site or a failed OS upgrade, builds stop. We will deal with it, but recovery takes time.
  • The backup approach is to let the same workflow run on both kinds of runner: make the value of runs-on a variable or an input on manual trigger, pointing at the self-hosted labels normally and switched to the platform's macOS runner when something goes wrong.
  • Signing is where the switch most often gets stuck. On the always-on machine the certificates sit in the keychain, while a cloud runner is a fresh environment each time and certificates have to be imported during the pipeline. So write the signing flow from the start so that it does not depend on machine state, and both sides can share it.
  • The backup is paid per minute only when something goes wrong and costs almost nothing the rest of the time. Its environment is decided by the platform, and the Xcode version may differ from your always-on machine's, so select it explicitly in the workflow.

Information as of .

Boundaries: when the answer is different

A backup flow that is never rehearsed is as good as none: cloud images get updated, certificates expire, and a workflow left unrun for months may well fail on the day you need it most. In addition, steps that depend on local caches or private tools on the always-on machine will be slower in the cloud or will not run at all, and these need to be identified in advance. On our side, faults caused by us are handled under the rules of the refund policy, but we do not provide a standby machine that takes over automatically. Teams that cannot tolerate any interruption should consider two machines, or using the cloud as the primary.

How to do it

  1. Change runs-on to be set by a variable that defaults to the self-hosted runner.
  2. Change signing to import certificates within the pipeline and authenticate with an API key, without relying on state already on the machine.
  3. Switch the variable to the cloud runner by hand and run it through once completely, including the upload.
  4. Rerun the backup flow every month or before each major release.
  5. Write down the switch-over steps, and who is allowed to perform them, in the team documentation.

Use case

This question belongs to the use case: Rented Mac mini as an always-on build machine for small teams? Count your build minutes first

Other questions in the same use case:

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All Q&A