File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -71,16 +71,22 @@ jobs:
7171 - uses : Swatinem/rust-cache@v1
7272 with :
7373 sharedKey : ${{ matrix.os }}-stable
74+ - name : Install gRPC dependencies
75+ run : |
76+ sudo apt-get update
77+ sudo apt-get install -y pkg-config libgrpc-dev libgrpc++-dev protobuf-compiler-grpc
7478 - name : Clippy
7579 run : make clippy
7680 env :
7781 WITH_STABLE_TOOLCHAIN : ' force'
82+ GRPCIO_SYS_USE_PKG_CONFIG : ' 1'
7883 - name : Run tests
7984 run : make test
8085 env :
8186 RUST_BACKTRACE : 1
8287 EXTRA_CARGO_ARGS : ' --verbose'
8388 WITH_STABLE_TOOLCHAIN : ' force'
89+ GRPCIO_SYS_USE_PKG_CONFIG : ' 1'
8490 coverage :
8591 runs-on : ubuntu-latest
8692 needs : nightly
@@ -98,6 +104,10 @@ jobs:
98104 - uses : Swatinem/rust-cache@v1
99105 with :
100106 sharedKey : ubuntu-latest
107+ - name : Install gRPC dependencies
108+ run : |
109+ sudo apt-get update
110+ sudo apt-get install -y pkg-config libgrpc-dev libgrpc++-dev protobuf-compiler-grpc
101111 - name : Install grcov
102112 run : if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install --locked grcov; fi
103113 - name : Run tests
@@ -106,6 +116,7 @@ jobs:
106116 RUSTFLAGS : ' -Cinstrument-coverage'
107117 LLVM_PROFILE_FILE : ' %p-%m.profraw'
108118 EXTRA_CARGO_ARGS : ' --verbose'
119+ GRPCIO_SYS_USE_PKG_CONFIG : ' 1'
109120 - name : Run grcov
110121 run : grcov `find . \( -name "*.profraw" \) -print` --binary-path target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../**' --ignore '/*' -o coverage.lcov
111122 - name : Upload
You can’t perform that action at this time.
0 commit comments