-
Notifications
You must be signed in to change notification settings - Fork 19
61 lines (51 loc) · 1.54 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
52
53
54
55
56
57
58
59
60
61
name: Clippy
on:
push:
branches: [ main ]
pull_request:
env:
CARGO_TERM_COLOR: always
FEATURES: xq-audio,discord-presence,log,debug-views,pu-checks,gdb-server,dldi
MACOSX_DEPLOYMENT_TARGET: 10.11
jobs:
clippy:
name: Clippy (${{ matrix.os }})
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
components: clippy
- name: Cache Cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git/db
key: cargo-registry
enableCrossOsArchive: true
- name: Install ALSA
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get update
sudo apt-get install libasound2-dev
- name: Update dependencies
run: cargo update
- name: Run clippy (no default features)
uses: actions-rs/clippy-check@v1
with:
name: Run clippy (${{ matrix.os }}, no default features)
token: ${{ secrets.GITHUB_TOKEN }}
args: --no-default-features --package dust-desktop
- name: Run clippy (all features)
uses: actions-rs/clippy-check@v1
with:
name: Run clippy (${{ matrix.os }}, all features)
token: ${{ secrets.GITHUB_TOKEN }}
args: --no-default-features --features=${{ env.FEATURES }} --package dust-desktop