-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (34 loc) · 1014 Bytes
/
check.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
on: [pull_request]
name: Lints
jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
name: Initialize Cargo
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
name: Cargo Cache
- uses: actions-rs/cargo@v1
name: Check code formatting
with:
command: fmt
args: --all -- --check
- name: Install dependencies
run: sudo apt-get install -y libasound2-dev portaudio19-dev build-essential libpulse-dev libdbus-1-dev
- uses: actions-rs/cargo@v1
name: Check code with clippy
with:
command: clippy
args: --workspace --all-targets -- --deny "warnings"
- uses: actions-rs/cargo@v1
name: Check code
with:
command: check
args: --workspace --all-targets