From 76d91e0f54f43244bb896872f56b1b913de85094 Mon Sep 17 00:00:00 2001 From: AdityaKasar Date: Tue, 3 Dec 2024 15:11:18 +0530 Subject: [PATCH] fixup! chore: CI to test CPP SDK --- .github/workflows/cxx-build.yml | 22 ++++++++++++++++++++++ .github/workflows/utils.sh | 2 ++ 2 files changed, 24 insertions(+) diff --git a/.github/workflows/cxx-build.yml b/.github/workflows/cxx-build.yml index f32efb0d..a37c5b9c 100644 --- a/.github/workflows/cxx-build.yml +++ b/.github/workflows/cxx-build.yml @@ -115,6 +115,17 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Firebolt Openrpc + run: | + mkdir -p /__w/openrpc + cd /__w/openrpc + git init + git remote add -f origin https://github.com/rdkcentral/firebolt-openrpc.git + git config core.sparseCheckout true + echo "languages/cpp/src/shared/CMakeLists.txt" >> .git/info/sparse-checkout + echo "languages/cpp/src/shared/cmake/CodeCoverage.cmake" >> .git/info/sparse-checkout + git pull origin chore/cpp-ci-unit-covorage-report + - name: Download Core SDK uses: actions/download-artifact@v3 with: @@ -185,6 +196,17 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Firebolt Openrpc + run: | + mkdir -p /__w/openrpc + cd /__w/openrpc + git init + git remote add -f origin https://github.com/rdkcentral/firebolt-openrpc.git + git config core.sparseCheckout true + echo "languages/cpp/src/shared/CMakeLists.txt" >> .git/info/sparse-checkout + echo "languages/cpp/src/shared/cmake/CodeCoverage.cmake" >> .git/info/sparse-checkout + git pull origin chore/cpp-ci-unit-covorage-report + - name: Download Manage SDK uses: actions/download-artifact@v3 with: diff --git a/.github/workflows/utils.sh b/.github/workflows/utils.sh index c61f3b10..cf504e8f 100755 --- a/.github/workflows/utils.sh +++ b/.github/workflows/utils.sh @@ -273,6 +273,8 @@ function build_cpp_sdk() { tar -xvf /__w/firebolt-apis/firebolt-apis/src/sdks/${sdk_name}/build/cpp/src/firebolt-${sdk_name}-native-sdk-${FIREBOLT_VERSION}.tgz -C /__w/firebolt-apis/firebolt-apis/ cd /__w/firebolt-apis/firebolt-apis/firebolt-${sdk_name}-native-sdk-${FIREBOLT_VERSION} + cp -f /__w/openrpc/firebolt-openrpc/languages/cpp/src/shared/CMakeLists.txt . + cp -f /__w/openrpc/firebolt-openrpc/languages/cpp/src/shared/cmake/CodeCoverage.cmake cmake/ chmod +x ./build.sh ./build.sh -s "/__w/thunder/install/" || exit 9999