Skip to content

Commit

Permalink
fixup! chore: CI to test CPP SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaKasar committed Dec 3, 2024
1 parent 310d61d commit 76d91e0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/cxx-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76d91e0

Please sign in to comment.