Skip to content

Commit ba19e27

Browse files
ci(cpp): pre-install cpr in CI workflow and finalize build validation
1 parent 1b21474 commit ba19e27

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/sdk-build-validation.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ jobs:
169169
run: |
170170
sudo apt-get update
171171
sudo apt-get install -y build-essential cmake libcurl4-openssl-dev nlohmann-json3-dev libgtest-dev
172+
git clone --depth 1 --branch 1.10.5 https://github.com/libcpr/cpr.git /tmp/cpr
173+
cmake -S /tmp/cpr -B /tmp/cpr/build -DCPR_BUILD_TESTS=OFF -DCPR_USE_SYSTEM_CURL=ON -DCMAKE_INSTALL_PREFIX=/usr/local
174+
sudo cmake --build /tmp/cpr/build --target install -j$(nproc)
172175
173176
- name: Build SDK
174177
working-directory: examples/${{ matrix.sdk }}

0 commit comments

Comments
 (0)