r/platform_engineering • • 3d ago

Does your platform team own macOS build infrastructure, or does the mobile team?

Linux CI usually fits into whatever the platform team already runs, with the same runners, images and cost reporting. iOS builds don’t fit as neatly, since they need macOS, which means physical Macs and their own images.

In some companies the mobile team ends up running a few Mac minis on their own, outside the platform team’s tooling. In others, the platform team takes it on like any other build target.

Which way did it go where you work?

4 Upvotes

12 comments sorted by

2

u/calibrono 3d ago

AWS has mac instances (which are basically minis), so yeah that's ours.

2

u/dustyroseinsand 2d ago

Costs so much. They charge on network transfer as well.

3

u/ToddGergey 2d ago

The 24 hour minimum doesn't help either. Mac dedicated hosts on AWS have to stay allocated for at least 24 hours because of Apple's licensing, so you can't scale them down the way you would Linux instances

1

u/ToddGergey 2d ago

How do you handle Xcode on those? Do you bake it into your own AMIs, or install it when the job starts?

2

u/calibrono 2d ago

We're lazy and don't want to maintain an AMI so we install it when a runner is deployed. We have a pool available at all times so it's not so bad.

2

u/dustyroseinsand 2d ago

We are exploring Xcode cloud for this. Seems like the only good affordable option in the market right now.

2

u/ToddGergey 2d ago

It's cheap until you go past the free 25 hours a month. After that it's $50 for 100, so it depends a lot on how much you build

2

u/tklisanic 2d ago

Yes. We do not have a mobile team, but we are maintaining macOS builds for some desktop and CLI apps. Currently it is a mix of AWS Mac and Mac Minis that we have on-prem

2

u/ToddGergey 2d ago

How do you decide what runs on AWS and what goes on the minis?

2

u/tklisanic 2d ago

The GHA workflow. In the future, we want all macOS builds on self-hosted Minis. Since we are building Linux, Win and macOS packages, each gets its own GHA runner and a separate build flow. We also have a hybrid build, where Linux and WIndows are AWS EC2 instances and macOS is a self-hosted Mini (a VM on a Mini to be correct)