-
Notifications
You must be signed in to change notification settings - Fork 19
Use @actions/tool-cache in Cargo.installCached #31
Comments
Hey, @alex, thanks for reminder, this thing definitely need a tracking issue. This comment is a bit outdated, though, it seems that It might be possible to provide download URLs for some cargo subcommand (let's say, download it from the GitHub releases page, like with a I would like to add an opaque cache for compiled subcommands with the simple "if it is not in cache yet, compile it and put it in there" flow, but at the moment it is blocked by actions/cache#55 |
I'm working on GitHub release installers for some commands ( The installers use |
There's a TODO for this, but I figured it might be helpful to have an issue for this:
core/src/commands/cargo.ts
Lines 33 to 35 in 29a296e
The lack of caching makes
cargo-audit
very very slow :-(I haven't played with
@actions/tool-cache
yet myself, but I imagine the solution is roughly callingtc.find()
, if it returns something copy it to the right place, otherwise run the install and then calltc.cacheFile()
.The text was updated successfully, but these errors were encountered: