News for hackers. Stuff that matters.
Re:Amazon EC2 M1 Mac Instances by eminence32 on Thursday December 02, 2021 @12:12PM (#29419020)
I have an slightly-off-topic question: If I want to test that my opensource project builds and runs on MacOS, what's the cheapest way for me to do this? AWS seems like a fairly expensive way do this at $15 USD per day
Re:Amazon EC2 M1 Mac Instances by X-Istence on Thursday December 02, 2021 @12:16PM (#29419104)
Github Actions has macOS available as a builder.
Re:Amazon EC2 M1 Mac Instances by eminence32 on Thursday December 02, 2021 @01:05PM (#29419892)
If you need to interactively test something, can you do that with Github Actions?
Re:Amazon EC2 M1 Mac Instances by JacobCarlborg on Thursday December 02, 2021 @02:24PM (#29421137)
You can use this GitHub action [1] to get SSH access to a GitHub runner. If you need access to the GUI you should be able to use ngrok, perhaps with this GitHub action [2]. I've tried tmate both with Linux and macOS runners. I've only tried ngrok with Linux runners.

CircleCI supports macOS runners and has native support for rerunning failed builds with SSH access. So just setup a job that always fails.

[1] https://github.com/marketplace/actions/debugging-with-tmate [2] https://github.com/marketplace/actions/ngrok-tunnel

Re:Amazon EC2 M1 Mac Instances by eminence32 on Thursday December 02, 2021 @02:58PM (#29421629)
Ahh, using tmate for this is very clever!
Re:Amazon EC2 M1 Mac Instances by mherdeg on Thursday December 02, 2021 @12:32PM (#29419369)
I guess you could buy a refurbished Mac Mini on apple.com for $589?
Re:Amazon EC2 M1 Mac Instances by EricE on Thursday December 02, 2021 @09:38PM (#29426025)
Or better still just use macminicolo.net
Re:Amazon EC2 M1 Mac Instances by zamadatix on Thursday December 02, 2021 @12:18PM (#29419126)
Scaleway has them for €2.4/day.
Re:Amazon EC2 M1 Mac Instances by icelusxl on Thursday December 02, 2021 @12:57PM (#29419756)
Re:Amazon EC2 M1 Mac Instances by zamadatix on Thursday December 02, 2021 @04:15PM (#29422693)
+ a €49 setup fee.

I've never really understood Hetzner's offering, I can get paying €2.4 for a quick one off or a once a month build but I don't get how €98 + €49 per additional month is better than buying a Mac Mini on a payment plan.

Re:Amazon EC2 M1 Mac Instances by detaro on Thursday December 02, 2021 @04:22PM (#29422802)
If in a business context the alternative is "the CI macs, that sit in some corner of some office under a desk and hopefully don't get unplugged", maybe with a side of "and IT hates unapproved servers and also won't put our macs in their DC", I can see it making some sense.
Re:Amazon EC2 M1 Mac Instances by mhitza on Thursday December 02, 2021 @05:24PM (#29423619)
IMHO unplugged once or twice a month, or GitHub Actions being unavailable it's pretty much the same thing.
Re:Amazon EC2 M1 Mac Instances by Nextgrid on Thursday December 02, 2021 @02:35PM (#29421296)
It is straightforward to run an x86 macOS VM on Linux with QEMU & KVM. It's against the EULA to do so on non-Mac hardware, but technically it is possible.
Re:Amazon EC2 M1 Mac Instances by userbinator on Thursday December 02, 2021 @10:30PM (#29426345)
"Virtual Hackintosh" is definitely quite popular, especially in regions where EULAs are not enforceable. But no one has managed to emulate the M1 enough to run the full OS yet[1], so that's a strictly x86-only option.

[1] I believe this is the closest publicly documented effort, and it's a year old: https://news.ycombinator.com/item?id=25064593

Re:Amazon EC2 M1 Mac Instances by asadlionpk on Thursday December 02, 2021 @12:59PM (#29419790)
probably just github actions: free!
Re:Amazon EC2 M1 Mac Instances by aaronbrethorst on Thursday December 02, 2021 @12:15PM (#29419078)
GitHub Actions
Re:Amazon EC2 M1 Mac Instances by mcphage on Thursday December 02, 2021 @12:14PM (#29419065)
You don't need to leave the machine running (and billing) 24/7/365—turning it on for a few hours a day when you're building for it, or testing builds, should be enough.
Re:Amazon EC2 M1 Mac Instances by jffry on Thursday December 02, 2021 @12:29PM (#29419321)
From https://aws.amazon.com/ec2/instance-types/mac/#Pricing:

"Amazon EC2 Mac instances are available for purchase as Dedicated Hosts through On Demand and Savings Plans pricing models. Billing for EC2 Mac instances is per second with a 24-hour minimum allocation period to comply with the Apple macOS Software License Agreement"

Re:Amazon EC2 M1 Mac Instances by mcphage on Thursday December 02, 2021 @03:36PM (#29422135)
...well, poop. That sucks.
Re:Amazon EC2 M1 Mac Instances by plorkyeran on Thursday December 02, 2021 @12:18PM (#29419138)
There's a minimum charge of 24 hours. macOS's license only permits renting the machine to a single buyer per day, so if you use it for five minutes then turn it off that machine is idle for the rest of the day.
Re:Amazon EC2 M1 Mac Instances by banana_giraffe on Thursday December 02, 2021 @12:19PM (#29419146)
Unlike other EC2 instances, you have to "reserve" a host, and the MAC instances require a minimum of a 24 hour reservation, that you pay for regardless of the instance state.

It can be hard to justify $15.60 every time I want to test some random thing. Not to mention I seem to recall you can't actually cancel a reservation till the 24 hour window is up, so you need to remember to stop it the next day, or automate that action somehow.