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

Install using specific rustc version #9

Open
3 tasks done
jhpratt opened this issue Aug 29, 2020 · 0 comments
Open
3 tasks done

Install using specific rustc version #9

jhpratt opened this issue Aug 29, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@jhpratt
Copy link

jhpratt commented Aug 29, 2020

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/[email protected]
        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.

@jhpratt jhpratt added the enhancement New feature or request label Aug 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant