run fmt, clippy and deny in build #22
Workflow file for this run
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
name: Build | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: "rustfmt, clippy" | |
- uses: Swatinem/rust-cache@v2 | |
- name: rustfmt | |
run: cargo fmt -- --check --color always | |
- run: cargo fetch | |
- name: clippy | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
deps: | |
name: lint deps | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: EmbarkStudios/cargo-deny-action@v1 | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install xmllint | |
run: sudo apt-get install -y lld | |
- name: build | |
run: cargo build --release |