This action provides a simple way to install
Cargo packages
using cargo binstall
. cargo binstall
allows us to speed up our CI by using binary packages where
available, rather than compiling everything from source.
This is useful for installing tools such as
Tarpaulin,
sccache, or any other Rust package that's
supported by cargo binstall
in your GitHub Actions.
You can use this action in your workflow directly, or use the all-in-one action for all your Rust CI needs. While this action is intended to be used with Rust projects, it's also useful on its own for non-Rust projects (for example, to use sccache with C++).
Input | Description | Example |
---|---|---|
packages |
A comma or whitespace separated list of packages to install using cargo binstall . |
cargo-watch cargo-tree cargo-tarpaulin |
Show me the code
- uses: brndnmtthws/rust-action-cargo-binstall@v1
with:
packages: cargo-tarpaulin sccache