mirror of
https://github.com/babichjacob/ac-qu-ai-nt.git
synced 2025-10-02 04:47:53 -04:00
ci: verify MSRV in GitHub Actions
This commit is contained in:
38
.github/workflows/check-and-build-and-test.yml
vendored
38
.github/workflows/check-and-build-and-test.yml
vendored
@@ -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 }}
|
||||||
|
Reference in New Issue
Block a user