Skip to content

Commit

Permalink
added msrv ci from extendr repo
Browse files Browse the repository at this point in the history
  • Loading branch information
CGMossa committed Jun 17, 2024
1 parent b564d16 commit ab06762
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/msrv.yml
Original file line number Diff line number Diff line change
@@ -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"
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit ab06762

Please sign in to comment.