mirror of https://github.com/eldruin/ds323x-rs
Raise MSRV and update CI
parent
a8b8428570
commit
de0231b958
|
@ -1,8 +1,5 @@
|
||||||
on:
|
|
||||||
push:
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
name: Build
|
name: Build
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: '--deny warnings'
|
RUSTFLAGS: '--deny warnings'
|
||||||
|
@ -13,7 +10,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
rust: [stable, beta, 1.35.0]
|
rust: [stable, 1.60.0]
|
||||||
TARGET:
|
TARGET:
|
||||||
- x86_64-unknown-linux-gnu
|
- x86_64-unknown-linux-gnu
|
||||||
- x86_64-unknown-linux-musl
|
- x86_64-unknown-linux-musl
|
||||||
|
@ -26,16 +23,14 @@ jobs:
|
||||||
- thumbv7m-none-eabi
|
- thumbv7m-none-eabi
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
target: ${{ matrix.TARGET }}
|
targets: ${{ matrix.TARGET }}
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Checkout CI scripts
|
- name: Checkout CI scripts
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: 'eldruin/rust-driver-ci-scripts'
|
repository: 'eldruin/rust-driver-ci-scripts'
|
||||||
ref: 'master'
|
ref: 'master'
|
||||||
|
@ -44,114 +39,70 @@ jobs:
|
||||||
- run: ./ci/patch-no-std.sh
|
- run: ./ci/patch-no-std.sh
|
||||||
if: ${{ ! contains(matrix.TARGET, 'x86_64') }}
|
if: ${{ ! contains(matrix.TARGET, 'x86_64') }}
|
||||||
|
|
||||||
- name: Build
|
- run: cargo build --target=${{ matrix.TARGET }}
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: --target=${{ matrix.TARGET }}
|
|
||||||
|
|
||||||
checks:
|
checks:
|
||||||
name: Checks
|
name: Checks
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
rust: [stable, beta]
|
|
||||||
TARGET:
|
|
||||||
- x86_64-unknown-linux-gnu
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
targets: x86_64-unknown-linux-gnu
|
||||||
toolchain: ${{ matrix.rust }}
|
|
||||||
target: ${{ matrix.TARGET }}
|
|
||||||
override: true
|
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
|
|
||||||
- name: Doc
|
- run: cargo doc
|
||||||
uses: actions-rs/cargo@v1
|
- run: cargo fmt --all -- --check
|
||||||
with:
|
|
||||||
command: doc
|
|
||||||
|
|
||||||
- name: Formatting
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: fmt
|
|
||||||
args: --all -- --check
|
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
name: Clippy
|
name: Clippy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
rust: [1.58.1]
|
|
||||||
TARGET:
|
|
||||||
- x86_64-unknown-linux-gnu
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
toolchain: 1.70.0
|
||||||
toolchain: ${{ matrix.rust }}
|
targets: x86_64-unknown-linux-gnu
|
||||||
target: ${{ matrix.TARGET }}
|
|
||||||
override: true
|
|
||||||
components: clippy
|
components: clippy
|
||||||
|
|
||||||
- name: Clippy
|
- run: cargo clippy --all-targets
|
||||||
uses: actions-rs/clippy-check@v1
|
|
||||||
with:
|
|
||||||
args: --all-targets -- --allow clippy::bool_assert_comparison
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Tests
|
name: Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
rust: [stable, beta]
|
rust: [stable]
|
||||||
TARGET: [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl]
|
TARGET: [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
target: ${{ matrix.TARGET }}
|
targets: ${{ matrix.TARGET }}
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo test --target=${{ matrix.TARGET }}
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --target=${{ matrix.TARGET }}
|
|
||||||
|
|
||||||
- name: Build examples
|
- name: Build examples
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo build --target=${{ matrix.TARGET }} --examples
|
||||||
if: contains(matrix.TARGET, 'x86_64')
|
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: --target=${{ matrix.TARGET }} --examples
|
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
name: Coverage
|
name: Coverage
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: xd009642/tarpaulin:latest
|
||||||
|
options: --security-opt seccomp=unconfined
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Install stable toolchain
|
- uses: actions/checkout@v3
|
||||||
uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Run cargo-tarpaulin
|
- name: Run cargo-tarpaulin
|
||||||
uses: actions-rs/tarpaulin@v0.1
|
run: cargo tarpaulin --out Lcov -- --test-threads 1
|
||||||
with:
|
|
||||||
args: '--out Lcov -- --test-threads 1'
|
|
||||||
|
|
||||||
- name: upload to Coveralls
|
- name: upload to Coveralls
|
||||||
uses: coverallsapp/github-action@master
|
uses: coverallsapp/github-action@master
|
||||||
|
|
|
@ -7,7 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
...
|
### Changed
|
||||||
|
- Raised MSRV to version 1.60.0
|
||||||
|
|
||||||
## [0.5.0] - 2022-02-21
|
## [0.5.0] - 2022-02-21
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
[![crates.io](https://img.shields.io/crates/v/ds323x.svg)](https://crates.io/crates/ds323x)
|
[![crates.io](https://img.shields.io/crates/v/ds323x.svg)](https://crates.io/crates/ds323x)
|
||||||
[![Docs](https://docs.rs/ds323x/badge.svg)](https://docs.rs/ds323x)
|
[![Docs](https://docs.rs/ds323x/badge.svg)](https://docs.rs/ds323x)
|
||||||
![MSRV](https://img.shields.io/badge/rustc-1.35+-blue.svg)
|
![MSRV](https://img.shields.io/badge/rustc-1.60+-blue.svg)
|
||||||
[![Build Status](https://github.com/eldruin/ds323x-rs/workflows/Build/badge.svg)](https://github.com/eldruin/ds323x-rs/actions?query=workflow%3ABuild)
|
[![Build Status](https://github.com/eldruin/ds323x-rs/workflows/Build/badge.svg)](https://github.com/eldruin/ds323x-rs/actions?query=workflow%3ABuild)
|
||||||
[![Coverage Status](https://coveralls.io/repos/eldruin/ds323x-rs/badge.svg?branch=master)](https://coveralls.io/r/eldruin/ds323x-rs?branch=master)
|
[![Coverage Status](https://coveralls.io/repos/eldruin/ds323x-rs/badge.svg?branch=master)](https://coveralls.io/r/eldruin/ds323x-rs?branch=master)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue