Hi,
I am wondering if there is a way to cache the intermediate build
artifacts to speed up builds on builds.sr.ht, and stumbled over this
thread. Currently my builds (https://builds.sr.ht/~ptek/ledge.link) take
over 20 minutes and most of the time is spent on building dependencies.
Is there a canonical way or a best practice of doing this nowadays?
Pavlo.
It appears you're already using docker for your build. I didn't look
very closely at what you're doing, but something that might help is to
build a custom docker image that's already set up with your
dependencies, then start your CI build by just pulling the image and
working from there.
I recognize that this isn't quite the same thing as caching
dependencies, but it might help speed up your build in the meantime.