File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Rust CI
2-
3- on :
4- push :
5- branches : [ main, develop ]
6- pull_request :
7- branches : [ main ]
8-
91jobs :
102 build :
113 runs-on : ubuntu-latest
@@ -18,37 +10,13 @@ jobs:
1810 with :
1911 toolchain : stable
2012 override : true
21- components : rustfmt, clippy
2213
23- - name : Cache cargo registry
24- uses : actions/cache@v3
25- with :
26- path : ~/.cargo/registry
27- key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
28-
29- - name : Cache cargo index
30- uses : actions/cache@v3
31- with :
32- path : ~/.cargo/git
33- key : ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
34-
35- - name : Cache target directory
36- uses : actions/cache@v3
37- with :
38- path : analyzer/target
39- key : ${{ runner.os }}-target-${{ hashFiles('**/Cargo.lock') }}
14+ - name : Install protobuf compiler
15+ run : sudo apt-get update && sudo apt-get install -y protobuf-compiler
4016
4117 - name : Fetch proto files
4218 run : ./scripts/fetch_protos.sh
4319
44- - name : Check formatting
45- working-directory : ./analyzer
46- run : cargo fmt -- --check
47-
48- - name : Run clippy
49- working-directory : ./analyzer
50- run : cargo clippy -- -D warnings
51-
5220 - name : Build
5321 working-directory : ./analyzer
5422 run : cargo build --release --verbose
You can’t perform that action at this time.
0 commit comments