ci: verify MSRV in GitHub Actions

This commit is contained in:
2024-10-07 15:55:23 -04:00
parent 5d7a0a26e0
commit 2f86ab7d39

View File

@@ -189,3 +189,41 @@ jobs:
- name: Test - name: Test
run: cargo nextest run --target ${{ matrix.supporteds.target }} run: cargo nextest run --target ${{ matrix.supporteds.target }}
msrv:
strategy:
matrix:
crate_directory:
- ./core
- ./cli-clap
- ./gui-eframe
- ./tui-ratatui
- ./multibinary
supporteds:
- runner: macos-latest
target: aarch64-apple-darwin
- runner: ubuntu-latest
target: x86_64-unknown-linux-gnu
- runner: windows-latest
target: x86_64-pc-windows-msvc
name: Verify MSRV of ${{ matrix.crate_directory }} for ${{ matrix.supporteds.target }} (on ${{ matrix.supporteds.runner }})
runs-on: ${{ matrix.supporteds.runner }}
timeout-minutes: 2
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install stable Rust toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
shared-key: ${{ matrix.supporteds.target }}-latest-variable
cache-on-failure: "true"
- name: Verify MSRV (minimum supported Rust version)
run: cargo msrv verify
working-directory: ${{ strategy.crate_directory }}