Skip to content

CI: test against MSRV #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 9 additions & 20 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: dtolnay/rust-toolchain@nightly
- run: bash ./auxiliary/update_cargo-readme.sh
- run: bash ./auxiliary/check_readme_consistency.sh

style:
name: Style Checks (stable/ubuntu-latest)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: hecrj/setup-rust-action@v1
- uses: actions/checkout@v1
- uses: dtolnay/rust-toolchain@nightly
with:
components: "rustfmt,clippy"
- uses: actions/checkout@v1
- name: Check code formatting
run: cargo fmt --all -- --check
- name: Check Clippy lints
Expand All @@ -39,14 +34,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust_release: [nightly, stable]
rust_release: [1.45, stable, nightly]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@master
- uses: hecrj/setup-rust-action@v1
- uses: actions/checkout@v1
- uses: dtolnay/rust-toolchain@master
with:
rust-version: ${{ matrix.rust_release }}
toolchain: ${{ matrix.rust_release }}
- name: Build
run: cargo build --verbose

Expand All @@ -71,11 +66,5 @@ jobs:

steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --package influxdb --package influxdb_derive --all-features --no-fail-fast
- uses: dtolnay/rust-toolchain@nightly
- run: cargo test --package influxdb --package influxdb_derive --all-features --no-fail-fast
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<a href="https://www.rust-lang.org/en-US/">
<img src="https://img.shields.io/badge/Made%20with-Rust-orange.svg" alt='Build with Rust' />
</a>
<a href="https://blog.rust-lang.org/2019/11/07/Rust-1.39.0.html">
<img src="https://img.shields.io/badge/rustc-1.39+-yellow.svg" alt='Minimum Rust Version' />
<a href="https://blog.rust-lang.org/2020/03/12/Rust-1.45.html">
<img src="https://img.shields.io/badge/rustc-1.45+-yellow.svg" alt='Minimum Rust Version' />
</a>
</p>

Expand Down
4 changes: 2 additions & 2 deletions README.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<a href="https://www.rust-lang.org/en-US/">
<img src="https://img.shields.io/badge/Made%20with-Rust-orange.svg" alt='Build with Rust' />
</a>
<a href="https://blog.rust-lang.org/2019/11/07/Rust-1.39.0.html">
<img src="https://img.shields.io/badge/rustc-1.39+-yellow.svg" alt='Minimum Rust Version' />
<a href="https://blog.rust-lang.org/2020/03/12/Rust-1.45.html">
<img src="https://img.shields.io/badge/rustc-1.45+-yellow.svg" alt='Minimum Rust Version' />
</a>
</p>

Expand Down
2 changes: 0 additions & 2 deletions influxdb_derive/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate proc_macro;

use proc_macro::TokenStream;
use proc_macro2::TokenStream as TokenStream2;
use quote::quote;
Expand Down