Skip to content

Commit 239bb3e

Browse files
committed
Add MSRV minimal versions in CI
1 parent 5eecd0b commit 239bb3e

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

Diff for: .github/workflows/rust.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ on:
77
pull_request:
88

99
jobs:
10+
# this checks the msrv
11+
msrv:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: baptiste0928/cargo-install@v2
16+
with:
17+
crate: cargo-msrv
18+
- name: Verify minimum rust version of influxdb crate
19+
run: cargo-msrv --path influxdb verify
20+
- name: Verify minimum rust version of influxdb_derive crate
21+
run: cargo-msrv --path influxdb_derive verify
22+
1023
# this checks that the readme created from rustdoc is up to date
1124
readmecheck:
1225
name: README Format Check
@@ -53,9 +66,6 @@ jobs:
5366
fail-fast: false
5467
matrix:
5568
rust:
56-
- name: MSRV
57-
toolchain: "1.65"
58-
nightly: false
5969
- name: Stable
6070
toolchain: stable
6171
nightly: false
@@ -78,7 +88,7 @@ jobs:
7888
~/.cargo/git
7989
~/.cargo/registry
8090
target
81-
key: "${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}}"
91+
key: "${{matrix.rust.toolchain}} on ${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}}"
8292
- run: cargo test --lib
8393
- run: cargo test --doc
8494

Diff for: influxdb/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ license = "MIT"
1111
readme = "README.md"
1212
include = ["src/**/*", "tests/**/*", "Cargo.toml", "LICENSE"]
1313
repository = "https://github.com/influxdb-rs/influxdb-rust"
14+
rust-version = "1.65"
1415

1516
[dependencies]
1617
chrono = { version = "0.4.23", features = ["serde"], default-features = false }

Diff for: influxdb_derive/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ license = "MIT"
1111
readme = "README.md"
1212
include = ["src/**/*", "tests/**/*", "Cargo.toml", "LICENSE"]
1313
repository = "https://github.com/influxdb-rs/influxdb-rust"
14+
rust-version = "1.65"
1415

1516
[lib]
1617
proc-macro = true

0 commit comments

Comments
 (0)