Skip to content

Merge pull request #15 from w3ird-tech/dependabot/cargo/versions-c91e… #31

Merge pull request #15 from w3ird-tech/dependabot/cargo/versions-c91e…

Merge pull request #15 from w3ird-tech/dependabot/cargo/versions-c91e… #31

Workflow file for this run

name: CI builds
on:
push:
branches: ["*"]
env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
RUSTC_WRAPPER: "sccache"
RUSTFLAGS: "-Dwarnings"
SCCACHE_GHA_ENABLED: "true"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Check formatting
run: cargo fmt --all --check
- name: Run clippy
run: cargo clippy --all-targets --all-features
- name: Install tooling
uses: taiki-e/install-action@v2
with:
tool: cargo-machete
- name: Check for unused deps
run: cargo machete --with-metadata
- name: Ensure it builds
run: cargo build