📝 Fix example #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |