Interview Prep/GitHub Actions/Speed, Caching & Cost

macOS jobs are 60% of your bill. What are your options?

IntermediateScenarioSpeed, Caching & Cost
Answer

Situation read → macOS minutes have a 10x multiplier in private repos.

What I'd do →

  1. Run macOS only where required (iOS build and signing), not for lint or unit tests that can run on Linux.
  2. Run the full macOS matrix on main and nightly, a single leg on PRs.
  3. Cache CocoaPods, SPM and DerivedData.
  4. Path filter so backend changes do not trigger iOS pipelines.
  5. Evaluate self-hosted Mac minis or a cloud Mac provider for very high volume, including maintenance cost.

Why → Most savings come from not running macOS at all for jobs that do not need it.

Interview tip → Quote the multipliers: Linux 1x, Windows 2x, macOS 10x.

All GitHub Actions questions Roadmap: GitHub Actions

More on Speed, Caching & Cost