From e188a80922ba032fa956049a65ee814e1c477e7d Mon Sep 17 00:00:00 2001 From: Josiah Parry Date: Tue, 23 Jan 2024 17:42:37 -0500 Subject: [PATCH 1/2] add rust version and MSRV CI --- .github/workflows/msrv.yml | 30 ++++++++++++++++++++++++++++++ Cargo.toml | 3 +++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/msrv.yml 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..d32bead 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,9 @@ include = [ "README.md" ] +# matches arrow +rust-version = "1.62" + [lib] crate-type = ["staticlib", "lib"] name = 'arrow_extendr' From 881e0cea513b7a0b18328886d98b87769932e38c Mon Sep 17 00:00:00 2001 From: Josiah Parry Date: Wed, 24 Jan 2024 10:06:55 -0500 Subject: [PATCH 2/2] Update Cargo.toml Co-authored-by: eitsupi <50911393+eitsupi@users.noreply.github.com> --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d32bead..2ebefc6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ include = [ ] # matches arrow -rust-version = "1.62" +rust-version = "1.70.0" [lib] crate-type = ["staticlib", "lib"]