News for hackers. Stuff that matters.
Re:The Pain That Is GitHub Actions by DanielHB on Thursday March 20, 2025 @10:12AM (#43423803)
Man I tried this approach by making my builds dockerized, turns out docker layer caching is pretty slow on CI and adds a lot of overhead locally.

Do not recommend this approach (of using docker for building).

Re:The Pain That Is GitHub Actions by adra on Thursday March 20, 2025 @11:19AM (#43424576)
Make builds in docker by mounting volumes and have your sources, intermediate files, caches, etc. in these volume mounts. Building a bunch of intermediate or incremental data IN the container every time you execute a new partial compile is insanity.

It's very satisfying just compile an application with a super esoteric tool chain in docker vs the nightmares of setting it up locally (and keeping it working over time).

Re:The Pain That Is GitHub Actions by DanielHB on Thursday March 20, 2025 @12:28PM (#43425383)
I had a project that had to build for macos, linux and windows on armv7, armv8 and x64 (and there were some talks about mips too). Just setting up all the stuff required to compile for all these target archs was a nightmare.

We used a single huge docker image with all the dependencies we needed to cross compile to all architectures. The image was around 1GB, it did its job but it was super slow on CI to pull it.