Direct answer
Yes. The machine stays on throughout the rental term, and the scheduled trigger is handled by your CI platform. You do not need to keep a remote desktop connection open overnight.
Basis
- Disconnecting only ends the remote control session. It does not shut down the Mac at the other end, and apps keep running according to their own settings. The runner stays up as a service of the logged-in user and picks up jobs at night as usual.
- GitHub Actions scheduled workflows come with several official notes (Events that trigger workflows, checked 2026-11-12): they run on the latest commit of the default branch; they are timed in UTC by default; triggers can be delayed during periods of high platform load; and in a public repository with no activity for more than 60 days, scheduled workflows are disabled automatically.
- A fixed monthly fee means machine time at night costs nothing extra. Good candidates for the night are the heavy jobs you would not run during the day: a full build with caches deleted, the complete UI test suite, a simulator matrix across several OS versions, static analysis.
- The nightly build is also the natural place for cleanup. Clear expired derived data and simulators before building, and daytime incremental builds will not be held back by the disk.
Boundaries: when the answer is different
"Night" is in your own time zone, so convert to UTC when writing the cron expression, and expect the actual start to be later than the time you set. If the machine restarts that night for maintenance or a fault and the runner does not come back online, jobs stay queued and you find out in the morning, so both failures and timeouts need notifications. We do not promise the machine will never restart. Do not set the machine to sleep or schedule a shutdown to save power; you may not shut it down yourself during the rental.
How to do it
- Add a
scheduletrigger to the workflow with the cron expression written in UTC, and keep a manual trigger as well. - Make cleanup the first step of the nightly flow and a full build without caches the second.
- Upload the app package and test result bundle as artifacts instead of leaving them only on the build machine.
- Set a timeout on the job and send failure notifications to email or a chat tool.
- For the first few mornings, check the actual start time and duration, then adjust the schedule.
Related questions
- Rented Mac mini as an always-on build machine for small teams? Count your build minutes first
- Can I shut down a rented Mac mini or put it to sleep?
- How do I know my unattended agent is still running properly?
- Can a self-hosted runner keep DerivedData and dependency caches between builds?
- Runner shows Offline and jobs stay queued: what to check first
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:
- Can code signing on a build machine be fully automated with no prompts?
- Build machine: buy a Mac mini for the office or rent one?
- Self-hosted Mac mini runner vs GitHub-hosted macOS runner: which to choose?
- I already have Xcode Cloud. Do I still need my own Mac mini build machine?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support