setup-rust icon indicating copy to clipboard operation
setup-rust copied to clipboard

Caching `cargo-lambda` builds

Open garysassano opened this issue 9 months ago • 2 comments

I was wondering if this action also caches cargo-lambda builds since that uses cargo-zigbuild under the hood.

garysassano avatar May 05 '25 15:05 garysassano

I don't do anything explicit, so my assumption is no. What are the paths where lambda caches are stored?

milesj avatar May 05 '25 16:05 milesj

A build executed with cargo lambda build --release stores the cache at target/release.

I could verify that everything works using the Swatinem/rust-cache action, so the problem is probably related to how moonrepo/setup-rust handles the caching.

garysassano avatar May 22 '25 00:05 garysassano