This is an automated email from the ASF dual-hosted git repository.
xyz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-client-cpp.git
The following commit(s) were added to refs/heads/main by this push:
new 42a425f Fix ci install deps failed. (#96)
42a425f is described below
commit 42a425f24c032738f835e98fe560e54139986404
Author: Baodi Shi <[email protected]>
AuthorDate: Fri Oct 28 15:26:38 2022 +0800
Fix ci install deps failed. (#96)
### Motivation
CI start failed.
https://github.com/apache/pulsar-client-cpp/actions/runs/3342410397/jobs/5534859707
### Modifications
- apt update before apt install.
---
.github/workflows/ci-pr-validation.yaml | 3 ++-
README.md | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/ci-pr-validation.yaml
b/.github/workflows/ci-pr-validation.yaml
index 0fd7d89..1607997 100644
--- a/.github/workflows/ci-pr-validation.yaml
+++ b/.github/workflows/ci-pr-validation.yaml
@@ -40,7 +40,8 @@ jobs:
- name: Install deps
run: |
- sudo apt-get install -y \
+ sudo apt-get update -y && \
+ sudo apt-get install -y \
libcurl4-openssl-dev \
protobuf-compiler \
libprotobuf-dev \
diff --git a/README.md b/README.md
index 6d2a9ee..5d75ba2 100644
--- a/README.md
+++ b/README.md
@@ -75,7 +75,7 @@ cd pulsar-client-cpp
#### Install all dependencies:
```shell
-sudo apt-get install -y g++ cmake libssl-dev libcurl4-openssl-dev \
+sudo apt-get update -y && apt-get install -y g++ cmake libssl-dev
libcurl4-openssl-dev \
libprotobuf-dev libboost-all-dev libgtest-dev libgmock-dev \
protobuf-compiler
```