-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (30 loc) · 925 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
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-2024-08-12
override: true
components: rustfmt, clippy
cache-on-failure: true
- 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 update; sudo apt-get install -y libgtk-3-dev 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: --all -- --deny "warnings"