-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.19 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
40
41
42
43
44
45
46
47
48
49
50
51
name: clippy
on: [push, pull_request]
env:
RUSTUP_TOOLCHAIN: nightly
RUSTUP_HOME: /home/runner/.cargo
CARGO_TERM_COLOR: always
LLVM_VERSION: 14.0.0
jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
all_but_latest: true
access_token: ${{ github.token }}
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUSTUP_TOOLCHAIN }}
profile: minimal
components: clippy
override: true
default: true
- name: Cache LLVM and Clang
id: cache-llvm
uses: actions/cache@v2
with:
path: |
C:/Program Files/LLVM
./llvm
key: llvm-14
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "14"
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features