diff --git a/.github/workflows/release-github.yml b/.github/workflows/release-github.yml index 4faa4f5b2..608068d06 100644 --- a/.github/workflows/release-github.yml +++ b/.github/workflows/release-github.yml @@ -169,17 +169,17 @@ jobs: run: | .github/workflows/utils.sh buildCoreCPPSDK $RELEASE_VERSION - # - name: Build Manage SDK CPP - # if: env.build_cpp_source == 'true' - # id: build_manage_cpp - # run: | - # .github/workflows/utils.sh buildManageCPPSDK $RELEASE_VERSION - - # - name: Build Discovery SDK CPP - # if: env.build_cpp_source == 'true' - # id: build_discovery_cpp - # run: | - # .github/workflows/utils.sh buildDiscoveryCPPSDK $RELEASE_VERSION + - name: Build Manage SDK CPP + if: env.build_cpp_source == 'true' + id: build_manage_cpp + run: | + .github/workflows/utils.sh buildManageCPPSDK $RELEASE_VERSION + + - name: Build Discovery SDK CPP + if: env.build_cpp_source == 'true' + id: build_discovery_cpp + run: | + .github/workflows/utils.sh buildDiscoveryCPPSDK $RELEASE_VERSION - name: Release Firebolt SDKs to NPM if: steps.check_build.outputs.files_exists == 'true' && github.event_name != 'pull_request' && (github.ref_name != 'main' || github.event_name == 'workflow_dispatch') diff --git a/.github/workflows/utils.sh b/.github/workflows/utils.sh index abd8043a6..d736bad37 100755 --- a/.github/workflows/utils.sh +++ b/.github/workflows/utils.sh @@ -176,37 +176,41 @@ function generateSource() { exit 1 fi - # echo "Generating source for Manage SDK" - # cd ../../../../manage - # npm run cpp - - # if [ $? -eq 0 ] - # then - # echo "Native Manage SDK generated successfully" - # echo " Manage SDK Location" - # cd build/cpp/src/ - # ls -la - # echo " ************ Source Generation Completed for Manage SDK ************" - # else - # echo "Native Manage SDK generation failed" - # exit 1 - # fi - - # echo "Generate source for Discovery SDK" - # cd ../../../../discovery - # npm run cpp - - # if [ $? -eq 0 ] - # then - # echo "Native Discovery SDK generated successfully" - # echo " Discovery SDK Location" - # cd build/cpp/src/ - # ls -la - # echo " ************ Source Generation Completed for Discovery SDK ************" - # else - # echo "Native Discovery SDK generation failed" - # exit 1 - # fi + echo "Generating source for Manage SDK" + cd ../../../../manage + npm run cpp + + if [ $? -eq 0 ] + then + echo "Native Manage SDK generated successfully" + echo " Manage SDK Location" + cd build/cpp/src/ + ls -la + echo " ************ Source Generation Completed for Manage SDK ************" + echo "***************** firebolt.h *****************" + cat include/firebolt.h + else + echo "Native Manage SDK generation failed" + exit 1 + fi + + echo "Generate source for Discovery SDK" + cd ../../../../discovery + npm run cpp + + if [ $? -eq 0 ] + then + echo "Native Discovery SDK generated successfully" + echo " Discovery SDK Location" + cd build/cpp/src/ + ls -la + echo " ************ Source Generation Completed for Discovery SDK ************" + echo "***************** firebolt.h *****************" + cat include/firebolt.h + else + echo "Native Discovery SDK generation failed" + exit 1 + fi } function cloneAndInstallThunder() {