7 ms·
Fastmac – A macOS instance or Linux shell
- dataking 6y agoInteresting idea but likely in violation of the GitHub Actions ToS [0]. > Actions should not be used for: [...] > any other activity unrelated to the production, testing, deployment, or publication of the software project associated with the repository where GitHub Actions are used. At the very least, I recommend you highlight the Actions ToS to your users lest they miss this restriction. [0]: https://docs.github.com/en/github/site-policy/github-additional-product-terms#5-actions-and-packages https://docs.github.com/en/github/site-policy/github-additio...
- lloeki 6y agoOne could peruse CircleCI, which has the ssh feature built-in, and also the widest support of macOS versions x Xcode combinations. All others CI providers are content with Y and Y-1 versions (at best) and seem squarely focused on build-for-iOS CI (Including Travis is hopelessly slow, when it’s not outright broken)
- jph00 6y agoMany thanks - my bad for not reading the ToS closely enough. I've highlighted the relevant section at the top of the README now. I think (AFAICT) it's still OK for what I use it for, which is building and testing conda packages interactively, as long as I copy the fastmac files into the same repo as the conda packages I'm building. I'm sure there's plenty of other folks who would find similar things helpful.
- kplex 6y agoBit risky with a company org if they decide it violates TOS does that just impact the offending repo, or the entire org?
- xwdv 6y agoBetter to ask for forgiveness than permission.
- deleted 6y ago[deleted]
- jen20 6y agoNot the case with things like Google accounts. Probably not worth the risk for GitHub accounts either.
- ohyeshedid 6y agoUnless you dick around in someone elses org and get them booted.
- asveikau 6y agoThere are a lot of things where that adage doesn't work. Risking losing an important account due to TOS violations is one. Also, you don't see a lot of people in jail saying that.
- xwdv 6y agoThe people not in jail are the ones who asked for forgiveness.
- roblabla 6y agoOh, this could be really useful for debugging actions! A lot of time when a workflow fails, I wish I could ssh into the failing build to investigate what went wrong. With this, I could save the whole build tree in an artifact, and restore it on-demand with a tmate session to see what happened!
- leetrout 6y agoI’m really frustrated with actions coming from circle and the ability to SSH in. Also the Act project to run locally is a joke. Everything runs in the node image. GitHub has the repo for all the packer scripts open sourced I just haven’t had time to make Dockerfiles from them. They really should offer that in an official capacity.
- cpr 6y agoWho's providing the macOS session, GH? Azure?
- lioeters 6y agoIt's one of GitHub-hosted runners: - Windows Server 2019 windows-latest or windows-2019 - Ubuntu 20.04 ubuntu-20.04 - Ubuntu 18.04 ubuntu-latest or ubuntu-18.04 - Ubuntu 16.04 ubuntu-16.04 - macOS Catalina 10.15 macos-latest or macos-10.15 From: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on https://docs.github.com/en/actions/reference/workflow-syntax...
- rgovostes 6y agoTo answer the parent's question: "GitHub hosts Linux and Windows runners on Standard_DS2_v2 virtual machines in Microsoft Azure... GitHub uses MacStadium to host the macOS runners." https://docs.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners#about-github-hosted-runners https://docs.github.com/en/actions/reference/virtual-environ...
- varbhat 6y agoWow, Good Hack. I also noticed that using so would violate Github action's TOS. I run macos in qemu/kvm . works very good. https://github.com/foxlet/macOS-Simple-KVM https://github.com/foxlet/macOS-Simple-KVM
- chubot 6y agoWow I didn't know you could do this. I thought OS X was tied in some way to Apple hardware (i.e. you can emulate the CPU but they tie it to other hardware). Is this how Github actions and other CI services work? For some reason I thought they had to buy a bunch of Apple hardware ...
- mmastrac 6y ago> I thought OS X was tied in some way to Apple hardware (i.e. you can emulate the CPU but they tie it to other hardware). It is, but very weakly - basically a secret string stored in the SMI. > Is this how Github actions and other CI services work? For some reason I thought they had to buy a bunch of Apple hardware ... You can virtualize MacOS, but only on official Apple hardware. There is likely a fleet of Mac Pros or Mac Minis somewhere running real hardware + VMs. EDIT: Read "You can ..." above as "You are authorized by Apple and can legally virtualize MacOS". You can run OSX on virtually any hardware in a VM, but doing it at scale or in a commercial setting will probably be a bad idea from a legal perspective.
- chubot 6y agoOK so by "can" you mean "according to Apple's TOS" ? Because it seems like you "can" in the technical sense (although I didn't try it, I looked at the code and it looks legit) I imagine that a small CI service could start with the QEMU solution unofficially, but they would likely have to switch to Apple hardware before Apple got wind of it ...
- zymhan 6y agoYou couldn't hide a macOS CI service from Apple for long. You can also get old Xserves and Mac Pros for quite cheap.
- jasoneckert 6y agoThis would be great for testing apps that run in a terminal. However, most people who build macOS apps aren't building these types of applications. So, they'll still need to shell out the $$ for a Mac running Xcode.
- heavyset_go 6y agoThis isn't necessarily true. For example, you can write GUI applications with Qt, QML, wxWidgets, GTK, IMGUI, or SDL without having to use Xcode, if you use a language like Python. I believe this applies to Electron, as well, but I haven't used it on a Mac.
- toyg 6y agoYou can but they will never look as native as xcode/objc apps.
- heavyset_go 6y agowxWidgets uses native widgets on macOS.
- jedbrown 6y agoLots of open source developers contribute to cross-platform libraries and dev tools. Testing/debugging on OSX is a significant hurdle for those of us who don't buy Apple hardware, and that increases the chances that users encounter issues before developers, thereby degrading their experience.
- RobMurray 6y agomacOs works fine in a VM, there's no need to buy mac hardware.
- oneplane 6y ago> shelling out thousands of dollars to buy a Mac Or you can buy one for a few hundred and that works fine too... It's a nice hack, but if you build software for Mac it really isn't more expensive than building software for Windows for example. If you want to sign/resell/other_thing_here that's a different story, but not related to your shell or building.
- jph00 6y agoI built it because I needed to build and test conda packages easily. Without it, I just wouldn't have bothered and would have only created Linux versions.
- freedomben 6y agoI built and maintain dory[1] which supports macOS, but I haven't had a mac to test with in many years, and I'm not giving any more of my money to Apple (I happily would if they respected my freedom, but that's not likely to happen so I don't usually mention this caveat). However I care about the humans who benefit from the software and run on mac, so I try to maintain support. This might be a great way for me to actually test instead of asking the community to test for me :-) [1]: https://github.com/FreedomBen/dory https://github.com/FreedomBen/dory
- tootie 6y agoBuilding for mac is at least marginally more expensive. Especially if you're a mobile dev. I find it utterly galling that if I own an iPhone, I can't install my own software without buying an apple computer and paying apple to let me be a developer for the two devices I bought. And CICD world has definitely improved but since Mac doesn't allow VMs you can only only build on hardware. For example, paying for build minutes via GitHub actions for OSX costs 5x as much as windows and 10x as much as Linux.
- oneplane 6y agoIs it? You buy a 500$ computer and off you go, no extra costs. Same if you get a computer for Windows or Linux. Same if you target a different device, you still need to get that development system, regardless of the vendor.
- jph00 6y ago@dang/mods - I accidentally wrote "for" instead of "or" on the github repo linked here, but have now fixed it. So now the title of this thread is wrong. It should be "Fastmac – A macOS instance or Linux shell". Sorry about that!
- dang 6y agoOk, we've de-effed that bit.
- james412 6y agoThis is actively encouraging people to abuse a free service that many people depend on. It's incredibly irresponsible to see it posted here. Stealing a worker for up to 6 hours likely running on real Apple hardware because that's how OS X is licensed, man, there are no words. Free CI is difficult enough to supply as it is without freeloaders tying up a limited pool of workers because they're too lazy to run something locally
- t0astbread 6y agoIt should be noted that we're talking about Microsoft's resources here, not some independent CI company or startup. While I don't wanna encourage anyone violating any ToS I think the moral situation is a bit different for a tech giant.
- derision 6y agoIt's not about Microsoft's resources, it's about holding up those resources from others
- xwdv 6y agoThe resources are effectively limitless, it’s not a big deal.
- ss3000 6y agoIt's a tragedy of the commons situation. Microsoft might be _able_ to provided effectively limitless funding to power these free workers, but if enough people choose to abuse this, Microsoft might no longer be _willing_ to provide that funding, so everybody would be deprived of a useful resource because of the bad actors.
- minot 6y agoYeah, Microsoft does some very strange things. Particularly, I'd like to draw attention to how skydrive/one drive used to have 25? GB and not only did Microsoft lower it to 7? But it said it would delete files over the limit. I have gone over the limit on Dropbox and it just stops you from uploading until you bring your storage within quota. Google Drive does the same iirc. Microsoft is just outright terrible.
- snarfy 6y agoI really wish Apple were more developer friendly. I'd like to have macOS versions of my free software projects but I don't own a mac so I can't support macOS.
- heavyset_go 6y agoNot only do you need a Mac, you have to pay Apple $100 a year for the right to distribute software to your customers, and you need an iPhone or iPad to complete the two-step verification on your developer account[1]. [1] https://news.ycombinator.com/item?id=24446970 https://news.ycombinator.com/item?id=24446970
- deleted 6y ago[deleted]
- xwdv 6y agoThis is a weak argument. If you can’t shell out $100 a year then you don’t really care about your Apple customers. The argument about needing Mac hardware is only slightly stronger, but again if you’re serious about the Apple market, you’ll find a way to get some kind of hardware at a price point that works for you. Unfortunately some developers think that price should be $0, perhaps simply spoiled by the idea that building software is some noble pursuit that should always have no costs associated with it, only pure profit. Nevermind that the true biggest cost is the ever increasing amount of time that must be spent writing and maintaining code, which can easily run in to the tens of thousands of dollars if you go by the average developers salaried rate.
- owowow 6y agoFor smaller open source projects, this creates a huge hurdle. Google Play requires a one time payment and the whole stack can be run on any computer. The barriers are even lower to get going with supporting Windows, Linux and *BSD. Meanwhile, Apple wants you to have a Mac, pay $100 a year for the privilege of being able to submit apps to their review process.
- deleted 6y ago[deleted]
- pbreit 6y agoA very capable 2020 MacBook is $999 new and $849 certified refurbished.
- YetAnotherNick 6y agoOr macincloud is $20/month with GUI access.
- q3k 6y agoThat's a lot of money for the vast majority of software developers outside of the SV bubble.
- scarface74 6y agoReally? I’m geographically as far outside of the SV bubble as geographically possible and still live in the US. $799 for a Mac Mini or $999 for a MacBook Air is not some super luxury that most middle class Americans can’t afford. The Mac Mini is about the same price as a mid tier iPhone. The average selling price of a PC in the US is $639. https://www.statista.com/statistics/722992/worldwide-personal-computers-average-selling-price/ https://www.statista.com/statistics/722992/worldwide-persona...
- q3k 6y agoI think that's missing the point. Sure, it's not far off the price of a computer - but it's still not an amount of money that you spend on a whim just because you need occasional access to macOS. It's the price of a (second) computer, and an above-average price too.
- scarface74 6y agoBut it’s not some luxury good that only people in the “SV bubble” can afford. If I were serious about being cross platform, why wouldn’t I just buy a Mac since it can run Windows, Linux and Mac software and I can build both Android and iOS software? You don’t even have to buy a new Mac. You can always buy a used 2014 Mac Mini.
- YetAnotherNick 6y agoDid GH bought lot of Mac minis for actions? Or is it some separate custom server module from Apple? Or is it hackintosh?
- andylynch 6y agoAlmost certainly a bunch of Mac minis. I would think and expect that Microsoft (or any decently run company) would never even consider using hackintoshes. It’s simply not worth the risk and damage.
- lights0123 6y agoSomeone else said that they use https://www.macstadium.com/ https://www.macstadium.com/, which does that.
- supernintendo 6y agoIf you want something that runs 100% locally with a persistent environment, take a look at macOS-Simple-KVM [0]. With some trivial tweaks in virt-manager as well as the guest OS, you can easily create a local macOS VM that you can SSH into from the host machine (EULA concerns still apply). This also allows you to pass-through devices such as USB devices or a secondary GPU to achieve near-native graphics performance in your macOS VM. [0] https://github.com/foxlet/macOS-Simple-KVM https://github.com/foxlet/macOS-Simple-KVM