From ab06762e4bc55c8f25aa32b73d4716d14fb94662 Mon Sep 17 00:00:00 2001 From: Mossa Date: Mon, 17 Jun 2024 14:34:30 +0200 Subject: [PATCH] added msrv ci from extendr repo --- .github/workflows/msrv.yml | 41 ++++++++++++++++++++++++++++++++++++++ Cargo.toml | 1 + 2 files changed, 42 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 00000000..e6938cb8 --- /dev/null +++ b/.github/workflows/msrv.yml @@ -0,0 +1,41 @@ +name: Check MSRV +on: + push: + branches: + - master + paths: + - "**.rs" + - "Cargo.toml" + - "**/Cargo.toml" + pull_request: + branches: + - master + paths: + - "**.rs" + - "Cargo.toml" + - "**/Cargo.toml" + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + test-min-rust-version: + # PowerShell core is available on all platforms and can be used to unify scripts + defaults: + run: + shell: pwsh + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: baptiste0928/cargo-install@v3 + with: + crate: cargo-msrv + - name: Verify minimum rust version + run: | + . ./ci-cargo.ps1 + ci-cargo msrv --path extendr-api/ verify -ActionName "Verify Rust MSRV" diff --git a/Cargo.toml b/Cargo.toml index 4db0ba7d..ad7be1bd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,7 @@ license = "MIT" links = "R" documentation = "https://docs.rs/libR-sys/latest/libR_sys/" repository = "https://github.com/extendr/libR-sys" +rust-version = "1.67" [dependencies]