diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 69d88f83695ff..2c0271e3b8e6d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ on: jobs: check: - name: Check + name: Check Stable runs-on: ubuntu-latest steps: - name: Checkout sources @@ -48,6 +48,53 @@ jobs: with: command: check + check-msrv: + name: Check MSRV + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v3 + + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - name: Cache cargo registry + uses: actions/cache@v3 + with: + path: ~/.cargo/registry + key: ${{ runner.os }}-v2-cargo-registry-${{ hashFiles('**/Cargo.lock') }} + restore-keys: ${{ runner.os }}-v2-cargo-registry- + + - name: Cache cargo index + uses: actions/cache@v3 + with: + path: ~/.cargo/git + key: ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }} + restore-keys: ${{ runner.os }}-v2-cargo-index- + + - name: Cache cargo target dir + uses: actions/cache@v3 + with: + path: target + key: ${{ runner.os }}-v2-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} + restore-keys: ${{ runner.os }}-v2-cargo-build-target- + + - name: Run cargo check + uses: actions-rs/cargo@v1 + with: + command: install + args: cargo-msrv + + - name: Run cargo check + uses: actions-rs/cargo@v1 + with: + command: msrv + args: --verify --path=helix-term + test: name: Test Suite runs-on: ${{ matrix.os }} diff --git a/helix-term/Cargo.toml b/helix-term/Cargo.toml index 706453ae6588b..1a74dc61d4b72 100644 --- a/helix-term/Cargo.toml +++ b/helix-term/Cargo.toml @@ -10,6 +10,7 @@ repository = "https://github.com/helix-editor/helix" homepage = "https://helix-editor.com" include = ["src/**/*", "README.md"] default-run = "hx" +metadata.msrv = "1.60.0" [package.metadata.nix] build = true