Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Use @actions/tool-cache in Cargo.installCached #31

@alex

Description

@alex

There's a TODO for this, but I figured it might be helpful to have an issue for this:

* TODO: We can utilize the `@actions/tool-cache` and cache installed binary.
* As for now it acts just like an stub and simply installs the program
* on each call.

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 calling tc.find(), if it returns something copy it to the right place, otherwise run the install and then call tc.cacheFile().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions