diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml new file mode 100644 index 0000000..d0bfc06 --- /dev/null +++ b/.github/workflows/msrv.yml @@ -0,0 +1,30 @@ +name: Check MSRV +on: + push: + branches: + - main + paths: + - src/**/*.rs + - Cargo.toml + pull_request: + branches: + - main + paths: + - src/**/*.rs + - Cargo.toml + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test-min-rust-version: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: baptiste0928/cargo-install@v2 + with: + crate: cargo-msrv + - name: Verify minimum rust version + run: cargo-msrv verify \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index ab5479f..2ebefc6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,9 @@ include = [ "README.md" ] +# matches arrow +rust-version = "1.70.0" + [lib] crate-type = ["staticlib", "lib"] name = 'arrow_extendr'