~sircmpwn/sr.ht-discuss

1

Re: Users interested in git-lfs support; build caches

Details
Message ID
<1f018b6cbcfbbfb17efb71935574972e@posteo.net>
DKIM signature
missing
Download raw message
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.

Re: Users interested in git-lfs support; build caches

Details
Message ID
<C15RJ6ZSD9FK.ZDXVD3X6HWPH@jupiter.local>
In-Reply-To
<1f018b6cbcfbbfb17efb71935574972e@posteo.net> (view parent)
DKIM signature
missing
Download raw message
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.
Reply to thread Export thread (mbox)