clux / muslrust

Docker environment for building musl based static linux rust binaries
MIT License
965 stars 88 forks source link

add some documentation about using sccache with this image #147

Closed cbeck88 closed 5 months ago

cbeck88 commented 5 months ago

as requested (https://github.com/clux/muslrust/pull/144#pullrequestreview-2072561465), here's some docu about using sccache

let me know if this looks okay to you. thanks

cbeck88 commented 5 months ago

actually there's some more stuff i was just reading about, apparently you can try to make sccache talk directly the github actions cache api instead of using a local directory to store and retrieve artifacts:

https://github.com/mozilla/sccache/blob/main/docs/GHA.md

then there are various improvements people made to avoid getting rate limited...

https://github.com/mozilla/sccache/pull/2142 https://github.com/Mozilla-Actions/sccache-action/issues/50

i haven't used any of this before. probably those who need it will find it on their own, i'm not having any problems with the setup i described here anyways

clux commented 5 months ago

actually there's some more stuff

yeah, all of that also sounds useful, i also have not tried these. if anyone wants to contribute useful links to working setups / pointers or such in the future, that would be welcome.

in the meantime, merging this. thanks again!