File tree 1 file changed +40
-15
lines changed
1 file changed +40
-15
lines changed Original file line number Diff line number Diff line change 1
- on : [push, pull_request]
1
+ on :
2
+ pull_request :
3
+ push :
4
+ branches :
5
+ - main
2
6
3
- name : Continuous integration
7
+
8
+ name : Check and Lint
4
9
5
10
jobs :
6
11
check :
@@ -15,24 +20,44 @@ jobs:
15
20
profile : minimal
16
21
toolchain : stable
17
22
override : true
18
- - run : rustup component add rustfmt
19
- - run : rustup component add clippy
20
- - name : cargo check
21
- uses : actions-rs/cargo@v1
23
+ - uses : Swatinem/rust-cache@v1
24
+ - uses : actions-rs/cargo@v1
22
25
with :
23
26
command : check
24
- - name : cargo test
25
- uses : actions-rs/cargo@v1
27
+
28
+ fmt :
29
+ name : Rustfmt
30
+ runs-on : ubuntu-latest
31
+ steps :
32
+ - name : Install alsa and udev
33
+ run : sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
34
+ - uses : actions/checkout@v2
35
+ - uses : actions-rs/toolchain@v1
26
36
with :
27
- command : test
28
- - name : cargo fmt
29
- uses : actions-rs/cargo@v1
37
+ profile : minimal
38
+ components : rustfmt
39
+ toolchain : stable
40
+ override : true
41
+ - uses : Swatinem/rust-cache@v1
42
+ - uses : actions-rs/cargo@v1
30
43
with :
31
44
command : fmt
32
45
args : --all -- --check
33
- - name : clippy
34
- uses : actions-rs/cargo@v1
46
+
47
+ clippy :
48
+ name : Clippy
49
+ runs-on : ubuntu-latest
50
+ steps :
51
+ - name : Install alsa and udev
52
+ run : sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
53
+ - uses : actions/checkout@v2
54
+ - uses : actions-rs/toolchain@v1
55
+ with :
56
+ toolchain : stable
57
+ components : clippy
58
+ override : true
59
+ - uses : Swatinem/rust-cache@v1
60
+ - uses : actions-rs/cargo@v1
35
61
with :
36
62
command : clippy
37
- args : -- -D warnings
38
-
63
+ args : -- -D warnings
You can’t perform that action at this time.
0 commit comments