Skip to content

run fmt, clippy and deny in build #22

run fmt, clippy and deny in build

run fmt, clippy and deny in build #22

Workflow file for this run

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