Skip to content

Commit

Permalink
fixup! feat(core): CI pipeline to build and test CPP SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaKasar committed Oct 11, 2024
1 parent 2c0981a commit fd330f3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cxx-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
path: /__w/firebolt-apis/install/

openrpc:
name: Build firebolt-openrpc artifacts
name: Build Openrpc Artifacts
runs-on: ubuntu-latest
container:
image: kevinshahfws/node-c:3.0
Expand Down
41 changes: 12 additions & 29 deletions .github/workflows/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -280,22 +280,15 @@ function buildCoreCPPSDK() {

FIREBOLT_VERSION=1.3.0-next.1
cd /__w/core-sdk/
ls -la build/cpp/src
cp build/cpp/src/firebolt-core-native-sdk-${FIREBOLT_VERSION}.tgz $current_dir/data
cd $current_dir/data
tar -zxvf firebolt-core-native-sdk-${FIREBOLT_VERSION}.tgz
cd firebolt-core-native-sdk-${FIREBOLT_VERSION}/
npm run cpp

tar -zxvf build/cpp/src/firebolt-core-native-sdk-${FIREBOLT_VERSION}.tgz -C $current_dir/data
cd $current_dir/data/firebolt-core-native-sdk-${FIREBOLT_VERSION}/
chmod +x ./build.sh
sed -i -e 's/prefix=/prefix /g' build.sh
cat ./build.sh

echo "***************** firebolt.h *****************"
cat include/firebolt.h

./build.sh -s "/__w/thunder/install/" || exit 9999
./build.sh -f "$current_dir/data/firebolt-core-native-sdk-${FIREBOLT_VERSION}/build/Firebolt" -s "/__w/thunder/install/"

cd $current_apis_dir
}

function buildManageCPPSDK() {
Expand All @@ -307,17 +300,12 @@ function buildManageCPPSDK() {
# cd src/sdks/manage
FIREBOLT_VERSION=1.3.0-next.1
cd /__w/manage-sdk/
ls -la build/cpp/src
cp build/cpp/src/firebolt-manage-native-sdk-${FIREBOLT_VERSION}.tgz $current_dir/data
cd $current_dir/data
tar -zxvf firebolt-manage-native-sdk-${FIREBOLT_VERSION}.tgz
cd firebolt-manage-native-sdk-${FIREBOLT_VERSION}/
npm run cpp

tar -zxvf build/cpp/src/firebolt-manage-native-sdk-${FIREBOLT_VERSION}.tgz -C $current_dir/data
cd $current_dir/data/firebolt-manage-native-sdk-${FIREBOLT_VERSION}/
chmod +x ./build.sh
sed -i -e 's/prefix=/prefix /g' build.sh
cat ./build.sh

echo "***************** firebolt.h *****************"
cat include/firebolt.h

./build.sh -s "/__w/thunder/install/" || exit 9999
./build.sh -f "$current_dir/data/firebolt-manage-native-sdk-${FIREBOLT_VERSION}/build/Firebolt" -s "/__w/thunder/install/"
Expand All @@ -333,17 +321,12 @@ function buildDiscoveryCPPSDK() {

FIREBOLT_VERSION=1.3.0-next.1
cd /__w/discovery-sdk/
ls -la build/cpp/src
cp build/cpp/src/firebolt-discovery-native-sdk-${FIREBOLT_VERSION}.tgz $current_dir/data
cd $current_dir/data
tar -zxvf firebolt-discovery-native-sdk-${FIREBOLT_VERSION}.tgz
cd firebolt-discovery-native-sdk-${FIREBOLT_VERSION}/
npm run cpp

tar -zxvf build/cpp/src/firebolt-discovery-native-sdk-${FIREBOLT_VERSION}.tgz -C $current_dir/data
cd $current_dir/data/firebolt-discovery-native-sdk-${FIREBOLT_VERSION}/
chmod +x ./build.sh
sed -i -e 's/prefix=/prefix /g' build.sh
cat ./build.sh

echo "***************** firebolt.h *****************"
cat include/firebolt.h

./build.sh -s "/__w/thunder/install/" || exit 9999
./build.sh -f "$current_dir/data/firebolt-discovery-native-sdk-${FIREBOLT_VERSION}/build/Firebolt" -s "/__w/thunder/install/"
Expand Down

0 comments on commit fd330f3

Please sign in to comment.