-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 861 Bytes
/
clippy.yml
File metadata and controls
43 lines (33 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Clippy
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: clippy-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup ESP-RS toolchain (RISC-V)
uses: esp-rs/xtensa-toolchain@v1.6
with:
default: true
ldproxy: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cache cargo artifacts
uses: Swatinem/rust-cache@v2
- name: Setup cargo config
run: cp .cargo/config.toml.dist .cargo/config.toml
- name: Run clippy
run: cargo clippy --all-targets --workspace -- -D warnings