File tree 1 file changed +80
-0
lines changed
1 file changed +80
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+
7
+ env :
8
+ RUSTFLAGS : -Dwarnings
9
+
10
+ jobs :
11
+ build_and_test :
12
+ name : Build and test
13
+ runs-on : ${{ matrix.os }}
14
+ strategy :
15
+ matrix :
16
+ os : [ubuntu-latest, windows-latest, macOS-latest]
17
+ rust : [nightly, beta, stable]
18
+
19
+ steps :
20
+ - uses : actions/checkout@master
21
+
22
+ - name : Install ${{ matrix.rust }}
23
+ uses : actions-rs/toolchain@v1
24
+ with :
25
+ toolchain : ${{ matrix.rust }}
26
+ override : true
27
+
28
+ - name : check
29
+ uses : actions-rs/cargo@v1
30
+ with :
31
+ command : check
32
+ args : --all --bins --examples --tests
33
+
34
+ - name : check bench
35
+ uses : actions-rs/cargo@v1
36
+ if : matrix.rust == 'nightly'
37
+ with :
38
+ command : check
39
+ args : --benches
40
+
41
+ - name : tests
42
+ uses : actions-rs/cargo@v1
43
+ with :
44
+ command : test
45
+ args : --all
46
+
47
+ check_fmt_and_docs :
48
+ name : Checking fmt and docs
49
+ runs-on : ubuntu-latest
50
+ steps :
51
+ - uses : actions/checkout@master
52
+
53
+ - uses : actions-rs/toolchain@v1
54
+ with :
55
+ profile : minimal
56
+ toolchain : nightly
57
+ override : true
58
+ components : rustfmt
59
+
60
+ - name : fmt
61
+ run : cargo fmt --all -- --check
62
+
63
+ - name : Docs
64
+ run : cargo doc
65
+
66
+ check_clippy :
67
+ name : Checking clippy
68
+ runs-on : ubuntu-latest
69
+ steps :
70
+ - uses : actions/checkout@master
71
+
72
+ - uses : actions-rs/toolchain@v1
73
+ with :
74
+ profile : minimal
75
+ toolchain : nightly
76
+ override : true
77
+ components : clippy
78
+
79
+ - name : fmt
80
+ run : cargo clippy --all
You can’t perform that action at this time.
0 commit comments