install clippy

This commit is contained in:
aniketfuryrocks 2023-07-18 17:38:32 +05:30
parent 7be62c1d37
commit b635d57415
No known key found for this signature in database
GPG Key ID: 1B75EA596D89FF06
1 changed files with 5 additions and 3 deletions

View File

@ -3,10 +3,10 @@ name: Rust Build and Clippy Check
on:
pull_request:
branches:
- main
- main
push:
branches:
- main
- main
jobs:
build:
@ -17,12 +17,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
# setup rust with stable toolchain
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install Clippy
run: rustup component add clippy --toolchain stable
- name: Build and test
run: |
cargo build --all-targets