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 d82fae8 commit d71bb23
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
28 changes: 25 additions & 3 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 @@ -166,7 +177,7 @@ jobs:
hide_complexity: true
indicators: true
output: both
thresholds: '80 40'
thresholds: '10 20'

- name: Add coverage PR comment
uses: marocchino/sticky-pull-request-comment@v2
Expand All @@ -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 Expand Up @@ -236,7 +258,7 @@ jobs:
hide_complexity: true
indicators: true
output: both
thresholds: '80 40'
thresholds: '10 20'

- name: Add coverage PR comment
uses: marocchino/sticky-pull-request-comment@v2
Expand Down Expand Up @@ -305,7 +327,7 @@ jobs:
hide_complexity: true
indicators: true
output: both
thresholds: '80 40'
thresholds: '10 20'

- name: Add coverage PR comment
uses: marocchino/sticky-pull-request-comment@v2
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ 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}
ls -l /__w/openrpc/
cp -f /__w/openrpc/languages/cpp/src/shared/CMakeLists.txt .
cp -f /__w/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 d71bb23

Please sign in to comment.