actions-rs / install

⏩ GitHub Action for a faster binary crates installation
https://github.com/marketplace/actions/rust-cargo-install
MIT License
54 stars 12 forks source link

Install using specific rustc version #9

Open jhpratt opened 4 years ago

jhpratt commented 4 years ago

Do the checklist before filing an issue:

Motivation

I'd like to be able to install tools like cargo-web and cargo-hack and be able to use them even on older compilers. To do this, the tools need to be installed using a more recent rustc (typically stable is more than sufficient), as the tools have a different MSRV than the code I'm testing.

Workflow example

on: [push]

name: build

jobs:
  check:
    name: Rust project
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions-rs/install@v0.1
        with:
          crate: cargo-audit
          version: latest
          rustc: stable
      - run: cargo audit

This would be equivalent to performing cargo +stable install cargo-audit.

I don't know if/how this would interact with the toolchain cache.