Skip to content
info

GitHub Action

Determine minimum supported Rust version (MSRV) for workspace

v0.1.0 Latest version

Determine minimum supported Rust version (MSRV) for workspace

info

Determine minimum supported Rust version (MSRV) for workspace

Determine minimum supported Rust version (MSRV) for workspace for use in a job matrix.

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Determine minimum supported Rust version (MSRV) for workspace

uses: actions-rust-lang/msrv@v0.1.0

Learn more about this action in actions-rust-lang/msrv

Choose a version

MSRV

Read MSRV from package or workspace manifest.

Usage

jobs:
  read_msrv:
    name: Read MSRV
    uses: actions-rust-lang/msrv/.github/workflows/msrv.yml@main

  build_and_test:
    needs:
      - read_msrv

    strategy:
      fail-fast: false
      matrix:
        version:
          - { name: msrv, version: "${{ needs.read_msrv.outputs.msrv }}" }
          - { name: stable, version: stable }

Drawbacks

  • Assumes all packages in workspace have same MSRV.