diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9a394810..17205587e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,6 @@ jobs: strategy: matrix: - rust_version: [stable, 1.70.0] os: [ubuntu-latest, windows-latest, macos-latest] steps: @@ -27,10 +26,13 @@ jobs: - name: Install Rust uses: actions-rs/toolchain@v1 with: - toolchain: ${{ matrix.rust_version }} + toolchain: stable override: true profile: minimal + - name: Rust cache + uses: Swatinem/rust-cache@v2 + - name: Setup Aftman uses: ok-nick/setup-aftman@v0.3.0 with: @@ -42,6 +44,33 @@ jobs: - name: Test run: cargo test --locked --verbose + msrv: + name: Check MSRV + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: 1.70.0 + override: true + profile: minimal + + - name: Rust cache + uses: Swatinem/rust-cache@v2 + + - name: Setup Aftman + uses: ok-nick/setup-aftman@v0.3.0 + with: + version: 'v0.2.7' + + - name: Build + run: cargo build --locked --verbose + lint: name: Rustfmt, Clippy, & Stylua runs-on: ubuntu-latest @@ -58,6 +87,9 @@ jobs: override: true components: rustfmt, clippy + - name: Rust cache + uses: Swatinem/rust-cache@v2 + - name: Setup Aftman uses: ok-nick/setup-aftman@v0.3.0 with: