Skip to content

Get the Minimum Supported Rust Version of your project

License

Notifications You must be signed in to change notification settings

spenserblack/actions-msrv

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

actions-msrv

Publish Docker Image

Get the Minimum Supported Rust Version of your project

This is essentially a wrapper around cargo-msrv. Many thanks to the maintainers of that crate!

Usage

Basics

steps:
  - uses: actions/checkout@v2
  - uses: spenserblack/actions-msrv@<commit-ish>
    id: get-msrv
  - run: 'echo "MSRV is ${{ steps.get-msrv.outputs.msrv }}"'

Setting MSRV in Cargo.toml

- uses: spenserblack/actions-msrv@<commit-ish>
  with:
    set: true

NOTE You might want to look up reusable workflows to easily use the examples.