-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.29 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
name: Clippy lints
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libasound2-dev libgl-dev libjack-dev libx11-xcb-dev libxcb1-dev libxcb-dri2-0-dev libxcb-icccm4-dev libxcursor-dev libxkbcommon-dev libxcb-shape0-dev libxcb-xfixes0-dev
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ matrix.name }}-${{ matrix.cross-target }}
- name: Install Pyhton 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install poetry
run: pip install poetry
- name: Set up Rust toolchain
uses: actions-rs/toolchain@v1
- name: Install cargo-make
uses: actions-rs/cargo@v1
with:
command: install
args: --debug cargo-make
- name: pre-build
run: cargo make pre-build
- name: Run clippy
uses: clechasseur/rs-clippy-check@v3
with:
args: --workspace --all-targets --all-features