14 points hauju 1 hour ago 8 comments
slopinthebag 57 minutes ago | parent
since claude wrote this article and probably the app as well, i would reccomend asking claude to use sccache in ci to cut down on compile times.
hauju 34 minutes ago | parent
I tried sccache as well. But caching jobs took longer than some build steps.
nemothekid 50 minutes ago | parent
>Caching with Swatinem/rust-cache. It helps, but there’s a trap. A workflow run can only restore caches from its own ref or the default branch, and GitHub evicts caches unused for 7 days.
>A self-hosted runner for the heavy builds. This was by far the biggest win, 90 minutes down to 40. It also means I now maintain a build server.
WarpBuild (https://www.warpbuild.com/)[1] solved this for me.
1. You can cache into your own s3 bucket, so you manage eviction policy
2. They manage the infrastructure, or you can link in your AWS account. I have builds that run on spot instances that are requested when a build starts.
Then for the caching issue, I just have a scheduled job that reruns a build at midnight on the master branch.
[1] Not affiliated, found them through Google several months ago