Skip to content

build(deps): update env_logger requirement from 0.10.1 to 0.11.1 #123

build(deps): update env_logger requirement from 0.10.1 to 0.11.1

build(deps): update env_logger requirement from 0.10.1 to 0.11.1 #123

Workflow file for this run

name: check
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch: {}
env:
CARGO_TERM_COLOR: always
jobs:
lints:
name: Rustfmt and clippy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install rust (stable)
uses: dtolnay/rust-toolchain@d76c2a93c593483c9892fd8d2538734f73ed8588
with:
components: clippy, rustfmt
- name: Run rustfmt
run: cargo fmt --check
- name: Run clippy
run: cargo clippy --all-features -- -D warnings
build_and_test:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta, nightly]
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install rust (${{ matrix.rust }})
uses: dtolnay/rust-toolchain@d76c2a93c593483c9892fd8d2538734f73ed8588
with:
toolchain: ${{ matrix.rust }}
- name: Cache
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: |
~/.cargo
target
Cargo.lock
key: ${{ runner.os }}-${{ matrix.rust }}-${{ hashFiles('Cargo.toml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.rust }}-${{ hashFiles('Cargo.toml') }}
${{ runner.os }}-${{ matrix.rust }}-
- name: Build
run: cargo build --all-targets
- name: Tests
run: cargo test --lib --examples
msrv:
name: Check minimal supported rust version (MSRV).
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install rust (stable)
uses: dtolnay/rust-toolchain@d76c2a93c593483c9892fd8d2538734f73ed8588
- name: Cache
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: ~/.cargo
key: msrv-${{ runner.os }}
- name: Install cargo-msrv
run: cargo install cargo-msrv
- name: Check msrv
run: cargo msrv