Skip to content

run fmt, clippy and deny in build #24

run fmt, clippy and deny in build

run fmt, clippy and deny in build #24

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- 'main'
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: Install xmllint
run: sudo apt-get install -y lld
- 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
- name: Install xmllint
run: sudo apt-get install -y lld
- 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