File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Rust CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
8
+
9
+ env :
10
+ CARGO_TERM_COLOR : always
11
+
12
+ jobs :
13
+ test_interpol-rs :
14
+
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - uses : actions/checkout@v3
19
+ - name : Update local toolchain
20
+ run : |
21
+ rustup update
22
+ rustup component add clippy
23
+ rustup install nightly
24
+
25
+ - name : Toolchain info
26
+ run : |
27
+ cargo --version --verbose
28
+ rustc --version
29
+ cargo clippy --version
30
+
31
+ - name : Lint
32
+ run : |
33
+ cd interpol-rs
34
+ cargo fmt -- --check
35
+ cargo clippy -- -D warnings
36
+
37
+ - name : Test
38
+ run : |
39
+ cd interpol-rs
40
+ cargo check
41
+ cargo test --all
42
+
43
+ - name : Build
44
+ run : |
45
+ cd interpol-rs
46
+ cargo build --release
You can’t perform that action at this time.
0 commit comments