chore: Release #175
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check formatting using rustfmt | |
# and lint with clippy | |
name: Rustfmt and Clippy check | |
on: | |
push: | |
jobs: | |
rustfmt: | |
name: rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt | |
- name: Run cargo fmt | |
run: cargo fmt --all -- --check | |
clippy: | |
name: clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: Run cargo clippy | |
run: cargo clippy --all-targets -- --no-deps -D warnings | |
- name: Run cargo clippy no_std | |
run: cargo clippy --no-default-features --all-targets -- --no-deps -D warnings | |
clippy-nightly: | |
name: clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: clippy | |
- name: Run cargo clippy nightly | |
run: cargo clippy --features=nightly --all-targets -- --no-deps -D warnings |