Skip to content

Add rust-toolchain.toml #31

Add rust-toolchain.toml

Add rust-toolchain.toml #31

Workflow file for this run

name: Rust
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache build
uses: Swatinem/rust-cache@v2
- name: Add components
run: |
rustup component add rustfmt
rustup component add clippy
- name: Build
run: cargo build
- name: Check format
run: cargo fmt --all -- --check
- name: Lint
run: cargo clippy --all-targets --all-features -- -A clippy::too_many_arguments -D warnings