1
1
name : Static Analysis
2
- on : [push, workflow_dispatch]
2
+ on : [ push, workflow_dispatch ]
3
3
concurrency :
4
4
group : ${{ github.workflow }}-${{ github.ref }}
5
5
cancel-in-progress : ${{ github.ref != 'refs/heads/master' }}
6
6
7
7
jobs :
8
8
fmt :
9
9
if : github.event.pull_request.draft == false
10
- runs-on : [self-hosted, Linux, X64]
10
+ runs-on : [ self-hosted, Linux, X64 ]
11
11
steps :
12
12
- name : Checkout the source code
13
- uses : actions/checkout@v3
13
+ uses : actions/checkout@v4
14
14
15
15
- name : Install deps
16
16
run : sudo apt -y install protobuf-compiler
@@ -35,39 +35,37 @@ jobs:
35
35
36
36
clippy :
37
37
if : github.event.pull_request.draft == false
38
- runs-on : [self-hosted, Linux, X64]
38
+ runs-on : [ self-hosted, Linux, X64 ]
39
39
steps :
40
- - name : Checkout the source code
41
- uses : actions/checkout@v3
40
+ - name : Checkout the source code
41
+ uses : actions/checkout@v4
42
42
43
- - name : Install deps
44
- run : sudo apt -y install protobuf-compiler
43
+ - name : Install deps
44
+ run : sudo apt -y install protobuf-compiler
45
45
46
- - name : free disk space
47
- run : |
48
- sudo swapoff -a
49
- sudo rm -f /swapfile
50
- sudo apt clean
46
+ - name : free disk space
47
+ run : |
48
+ sudo swapoff -a
49
+ sudo rm -f /swapfile
50
+ sudo apt clean
51
51
52
- - name : Install & display rust toolchain
53
- run : rustup show
52
+ - name : Install & display rust toolchain
53
+ run : rustup show
54
54
55
- - name : Check targets are installed correctly
56
- run : rustup target list --installed
55
+ - name : Check targets are installed correctly
56
+ run : rustup target list --installed
57
57
58
- - uses : actions-rs/clippy-check@v1
59
- env :
60
- SKIP_WASM_BUILD : 1
61
- with :
62
- token : ${{ secrets.GITHUB_TOKEN }}
63
- args : --features try-runtime,runtime-benchmarks -- -D warnings
58
+ - name : Clippy
59
+ env :
60
+ SKIP_WASM_BUILD : 1
61
+ run : cargo clippy --features evm-tracing,try-runtime,runtime-benchmarks -- -D warnings
64
62
65
63
check-license :
66
64
if : github.event.pull_request.draft == false
67
- runs-on : [self-hosted, Linux, X64]
65
+ runs-on : [ self-hosted, Linux, X64 ]
68
66
steps :
69
67
- name : Checkout the source code
70
- uses : actions/checkout@v3
68
+ uses : actions/checkout@v4
71
69
72
70
- name : Check license
73
71
uses : viperproject/check-license-header@v2
0 commit comments