Skip to content

Commit 398e362

Browse files
committed
Fix rust-ci failure
1 parent bdd3c41 commit 398e362

1 file changed

Lines changed: 2 additions & 34 deletions

File tree

.github/workflows/rust-ci.yml

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
name: Rust CI
2-
3-
on:
4-
push:
5-
branches: [ main, develop ]
6-
pull_request:
7-
branches: [ main ]
8-
91
jobs:
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

0 commit comments

Comments
 (0)