-
-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (46 loc) · 1.22 KB
/
lint.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
name: Lint
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Rust nightly
run: |
rustup toolchain install nightly
rustup component add --toolchain nightly rustfmt
- name: Check formatting
run: cd src-tauri; cargo fmt -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
# From: https://tauri.app/v1/guides/getting-started/prerequisites
sudo apt update
sudo apt install libwebkit2gtk-4.0-dev \
build-essential \
curl \
wget \
file \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
libsoup2.4-dev \
librsvg2-dev
- name: Set up Rust nightly
run: |
rustup toolchain install nightly
rustup component add --toolchain nightly clippy
- name: Install node dependencies
run: npm install
- name: Build aw-webui and icons
run: |
make prebuild
- name: Run clippy
run: cd src-tauri; cargo clippy