Skip to content

Commit

Permalink
Add MSRV minimal versions in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Empty2k12 committed Dec 13, 2024
1 parent 5eecd0b commit 239bb3e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ on:
pull_request:

jobs:
# this checks the msrv
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: baptiste0928/cargo-install@v2
with:
crate: cargo-msrv
- name: Verify minimum rust version of influxdb crate
run: cargo-msrv --path influxdb verify
- name: Verify minimum rust version of influxdb_derive crate
run: cargo-msrv --path influxdb_derive verify

# this checks that the readme created from rustdoc is up to date
readmecheck:
name: README Format Check
Expand Down Expand Up @@ -53,9 +66,6 @@ jobs:
fail-fast: false
matrix:
rust:
- name: MSRV
toolchain: "1.65"
nightly: false
- name: Stable
toolchain: stable
nightly: false
Expand All @@ -78,7 +88,7 @@ jobs:
~/.cargo/git
~/.cargo/registry
target
key: "${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}}"
key: "${{matrix.rust.toolchain}} on ${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}}"
- run: cargo test --lib
- run: cargo test --doc

Expand Down
1 change: 1 addition & 0 deletions influxdb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ license = "MIT"
readme = "README.md"
include = ["src/**/*", "tests/**/*", "Cargo.toml", "LICENSE"]
repository = "https://github.com/influxdb-rs/influxdb-rust"
rust-version = "1.65"

[dependencies]
chrono = { version = "0.4.23", features = ["serde"], default-features = false }
Expand Down
1 change: 1 addition & 0 deletions influxdb_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ license = "MIT"
readme = "README.md"
include = ["src/**/*", "tests/**/*", "Cargo.toml", "LICENSE"]
repository = "https://github.com/influxdb-rs/influxdb-rust"
rust-version = "1.65"

[lib]
proc-macro = true
Expand Down

0 comments on commit 239bb3e

Please sign in to comment.