Skip to content

Commit

Permalink
run fmt, clippy and deny in build
Browse files Browse the repository at this point in the history
  • Loading branch information
onatm committed May 11, 2024
1 parent 5e73ddf commit 30d2e76
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,42 @@
name: build
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:
- name: Checkout sources
uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Install xmllint
run: sudo apt-get install -y lld
- name: Build
- name: build
run: cargo build --release

0 comments on commit 30d2e76

Please sign in to comment.