Hacker News new | ask | show | jobs
by klodolph 19 days ago
I think my main advice is to avoid GH actions at all, unless avoiding them is somehow painful. There is just a long bad history here.
4 comments

I just replaced all of my github CI/CD with woodpecker running on a desktop on-premise.

Works completely fine and no github bill.

These days setting up a proper system on your build orchestrator of choice is pretty easy, cheaper, and you basically only lose a tiny bit of UI niceness if they report to github anyway
Only if your not on GH free, which I use for my OSS projects for example.
What would you suggest instead?
I work at Buddy. The CI product matters less than it looks here, most of that bad histroy is third-party actions pulled by a tag which someone else can move. Plain scripts as every step fix most of it on Buildkite, and also on GitHub itself, which is the cheapest option in my opinion
cron and bash
Just about anything else, tbh. Jenkins is the option I would go for, but that’s a reflection of my personal preferences for self-hosting. Self-hosting has gotten way easier since LLMs can debug things so well, so I’m self-hosting more than ever before even though I have less time available.

You don’t have to go Jenkins, it’s just that GitHub Actions are uniquely bad and I would avoid them.

If you are relying on the free version of GitHub actions for small projects, I would consider just running something on a NUC or Pi at home.

A Pi is not going to make your Windows and macOS builds. It's also going to have a miserable time running the Rust compiler on your five hundred dependencies.
Here’s my take: if you don’t personally have a Mac, you should not be making Mac builds of your software.

Same for Windows.

I may be a little old-school about this. That’s fine. I think most people out there who are trying to support multiple platforms with their code should be going one of three directions—(1) some kind of web app, (2) an open-source tool where end-users compile it or run it in their Python interpreter or Node.js or whatever, or (3) a pre-built binary for systems they personally run at home.

I also am not writing out, like, an essay on how to replace GitHub actions for every possible use case that people have GitHub actions for. I am just providing some suggestions for one possible direction. If you get off GitHub actions, you are going to end up with something that is missing some of the features that GitHub actions, maybe some features that you like. The same is true in the reverse—if you switch to GitHub actions, you will obviously lose features that were present in whatever other system you had before. GitHub actions is, after all, completely terrible and switching to it would just be a kind of disaster in a bunch of different ways.

I don’t like to put this kind of wall-of-text disclaimer in comments on HN, and hopefully y’all can figure this stuff out without the wall-of-text disclaimer. It would be kind of… absurd… perhaps, to expect some random commentator on Hacker News to give you exactly the answer that satisfies your needs, unless you put those needs in a question.

Instead I limited myself to two suggestions. If you don’t like them, then figure something else out yourself. You will not have trouble making something better than GitHub actions.

> if you don’t personally have a Mac, you should not be making Mac builds of your software

Apple seem to believe this extremely strongly and keep finding new ways to prevent you doing it.

I basically agree, and at work we have a Jenkins master + cluster of build machines. But this does incur substantial sysadmin overhead even if we're using Ansible and all the Windows ones are VMs. (Mac, again, hates being either virtualized or stuck in a rack, and will occasionally insist on someone using the physical display and keyboard on the actual machine to perform updates)

GitHub actions is bad, but if you keep things mostly in locally verifiable scripts it's really not that bad.

And yes, you should have a Mac for local testing of you target OSX, but it's still useful to have an easy way to run a matrix of platforms in CI.

Jenkins is fine but hard to call it better than GH actions, subjectively.

A 'should' with no explanation? What if I think that I 'should' release, for my tool I want people to use, binaries that run on their computer instead of just mine? Why 'should' this be a web-app? (What's 'old-school' about that?)
A Pi can run MinGW or Clang with a Win32 target. Even running MSVC under Wine is technically possible.
Jenkins over GHA is insane.
GHA over Jenkins is insane. Every time I’ve touched GHA, I’ve just been shocked with how bad the ecosystem is.

It feels like, I don’t know. You go to somebody’s house and they have one plate, one cup, one spork. They’re living in a 30th floor walk-up, but one of the windows is missing so there’s a giant hole in the wall.

That’s kind of the subjective experience I get when I see people using GitHub actions.

I'm not saying GHA is much better, but Jenkins is literally swiss cheese, it has vulnerabilities every day of the week. Even just as an internal service not exposed to the internet it's dangerous.
The whole system is just bad. Even Jenkins is better. Or a shell script in a one minute cronjob.