File tree Expand file tree Collapse file tree 1 file changed +47
-7
lines changed Expand file tree Collapse file tree 1 file changed +47
-7
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,56 @@ name: avi
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- build :
6
+
7
+ clippy-rustfmt :
7
8
8
9
runs-on : ubuntu-latest
9
10
10
11
steps :
11
- - uses : actions/checkout@v1
12
- - name : Print rust version
13
- run : rustc -vV
12
+ - uses : actions/checkout@v2
13
+
14
+ - name : Install stable
15
+ uses : actions-rs/toolchain@v1
16
+ with :
17
+ profile : minimal
18
+ toolchain : stable
19
+ override : true
20
+ components : clippy, rustfmt
21
+
22
+ - name : Run rustfmt
23
+ uses : actions-rs/cargo@v1
24
+ with :
25
+ command : fmt
26
+ args : -- --check --verbose
27
+
28
+ - name : Lint
29
+ uses : actions-rs/clippy-check@v1
30
+ with :
31
+ token : ${{ secrets.GITHUB_TOKEN }}
32
+ args : --all-features --tests --benches
33
+
34
+ build :
35
+
36
+ strategy :
37
+ matrix :
38
+ platform : [ubuntu-latest, windows-latest]
39
+
40
+ runs-on : ${{ matrix.platform }}
41
+
42
+ steps :
43
+ - uses : actions/checkout@v2
44
+
45
+ - name : Install stable
46
+ uses : actions-rs/toolchain@v1
47
+ with :
48
+ profile : minimal
49
+ toolchain : stable
50
+ override : true
51
+
14
52
- name : Run tests
15
53
run : |
16
- cargo test --all-features --verbose
17
- cargo bench --all-features --verbose
18
- cargo doc --all-features --verbose
54
+ cargo test --all-targets --all-features
55
+
56
+ - name : Generate docs
57
+ run : |
58
+ cargo doc --all-features --no-deps
You can’t perform that action at this time.
0 commit comments