-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (36 loc) · 1.2 KB
/
clippy.yml
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
name: "clippy"
on:
push:
branches:
- main
pull_request:
merge_group:
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
repository: ${{github.event.pull_request.head.repo.full_name || github.repository }}
- name: Install LLVM
uses: KyleMayes/install-llvm-action@v2
with:
version: "16.0"
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Install Rust problem matchers
uses: r7kamura/rust-problem-matchers@v1
- name: Use dependency cache
uses: Swatinem/rust-cache@v2
- name: cargo +nightly clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings