Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/davidb/rust-cargo-make

🛠️ GitHub Action to install `cargo-make` command
https://github.com/davidb/rust-cargo-make

cargo-subcommand github-actions rust rust-lang

Last synced: 4 days ago
JSON representation

🛠️ GitHub Action to install `cargo-make` command

Awesome Lists containing this project

README

        

# `rust-cargo-make` action

Install `cargo-make` by downloading the executable (faster than
`cargo install cargo-make`, seconds vs minutes).

## Inputs

### `version`

**Optional** version of `cargo-make` to install (eg. `"0.22.2"`, `"latest"`).

## Example usage

```yaml
- uses: dtolnay/rust-toolchain@stable
- uses: davidB/rust-cargo-make@v1
- uses: actions/checkout@v1
- name: Run tests
run: cargo make ci-flow
```

```yaml
- uses: dtolnay/rust-toolchain@stable
- uses: davidB/rust-cargo-make@v1
with:
version: '0.23.0'
- uses: actions/checkout@v1
- name: Run tests
run: cargo make ci-flow
```

## Alternatives

- [taiki-e/install-action: GitHub Action for installing development tools (mainly from GitHub Releases).](https://github.com/taiki-e/install-action),
full list of installable tools
[here](https://github.com/taiki-e/install-action/blob/main/TOOLS.md)

```yaml
- uses: taiki-e/install-action@v2
with:
tool: cargo-make
```

- using [mise](https://mise.jdx.dev/) and its GitHub Action to setup rust,
cargo-make, and other tools (on local machine & GitHub workflow), partial list
of installable tools at
[asdf-vm/asdf-plugins: Convenience shortname repository for asdf community plugins](https://github.com/asdf-vm/asdf-plugins)
but there are other alternatives than asdf.