File tree Expand file tree Collapse file tree 2 files changed +66
-0
lines changed Expand file tree Collapse file tree 2 files changed +66
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ env :
10
+ CARGO_TERM_COLOR : always
11
+
12
+ jobs :
13
+ build :
14
+ runs-on : " ubuntu-22.04"
15
+ env :
16
+ RUSTFLAGS : " -D warnings"
17
+
18
+ steps :
19
+ - name : Checkout
20
+ uses : actions/checkout@v3
21
+ - name : Setup Cache
22
+ uses : Swatinem/rust-cache@v2
23
+ - name : Install Tools
24
+ run : cargo install clippy-sarif sarif-fmt
25
+ - name : Build Debug
26
+ run : |
27
+ set -o pipefail
28
+ cargo build --workspace --all-features --message-format json | clippy-sarif | tee rust-build-results.sarif | sarif-fmt
29
+ - name : Build Release
30
+ run : |
31
+ set -o pipefail
32
+ cargo build --release --workspace --all-features --message-format json | clippy-sarif | tee rust-build-results.sarif | sarif-fmt
33
+ - name : Upload Results
34
+ uses : github/codeql-action/upload-sarif@v2
35
+ if : ${{ always() }}
36
+ with :
37
+ sarif_file : rust-build-results.sarif
38
+ wait-for-processing : true
39
+
40
+
41
+ clippy :
42
+ runs-on : " ubuntu-22.04"
43
+
44
+ steps :
45
+ - name : Checkout
46
+ uses : actions/checkout@v3
47
+ - name : Setup Cache
48
+ uses : Swatinem/rust-cache@v2
49
+ with :
50
+ cache-on-failure : true
51
+ - name : Install Tools
52
+ run : cargo install clippy-sarif sarif-fmt
53
+ - name : Checks
54
+ run : |
55
+ set -o pipefail
56
+ cargo clippy --message-format json --workspace --all-features -- -D warnings | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
57
+ - name : Upload Results
58
+ uses : github/codeql-action/upload-sarif@v2
59
+ if : ${{ always() }}
60
+ with :
61
+ sarif_file : rust-clippy-results.sarif
62
+ wait-for-processing : true
Original file line number Diff line number Diff line change
1
+ [toolchain ]
2
+ channel = " 1.73.0"
3
+ components = [ " rustfmt" , " clippy" ]
4
+ profile = " default"
You can’t perform that action at this time.
0 commit comments