Skip to content

Setup cargo-dist

Setup cargo-dist #2

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Run check
run: cargo check
- name: Run rustfmt
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Run test
run: cargo test
- name: Build
run: cargo build
- name: Run pre-commit hook
uses: pre-commit/[email protected]