diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a01f0d2..f970ec3 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -11,7 +11,6 @@ env: jobs: build: - runs-on: ubuntu-latest steps: @@ -20,5 +19,37 @@ jobs: run: git submodule update --init --recursive - name: Build run: cargo build --verbose - - name: Run tests + - name: Tests run: cargo test --verbose + - name: Clippy + run: cargo clippy ${{ matrix.build-args }} -- -D warnings + + build-msrv-1660: + name: Build + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - version: stable # STABLE + - version: 1.66.0 # MSRV + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-msrv-1.66.0-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} + - name: Set default toolchain + run: rustup default ${{ matrix.rust.version }} + - name: Set profile + run: rustup set profile minimal && rustup component add clippy + - name: Build + run: cargo build ${{ matrix.build-args }} + - name: Tests + run: cargo test ${{ matrix.build-args }} + - name: Clippy + run: cargo clippy ${{ matrix.build-args }} -- -D warnings