From cd6a2e0434fcbe86e295b54887a3b3872abed2ca Mon Sep 17 00:00:00 2001 From: Keaton Sentak Date: Thu, 22 Aug 2024 10:14:52 -0400 Subject: [PATCH] just gen source --- .github/workflows/release-github.yml | 20 ++++---- .github/workflows/utils.sh | 69 +++++++++++++++------------- 2 files changed, 48 insertions(+), 41 deletions(-) diff --git a/.github/workflows/release-github.yml b/.github/workflows/release-github.yml index 4d3c84bda..5fa33046d 100644 --- a/.github/workflows/release-github.yml +++ b/.github/workflows/release-github.yml @@ -111,17 +111,17 @@ jobs: run: | .github/workflows/utils.sh generateSource - - name: Clone and Install Thunder - if: env.build_cpp_source == 'true' - id: install_thunder - run: | - .github/workflows/utils.sh cloneAndInstallThunder + # - name: Clone and Install Thunder + # if: env.build_cpp_source == 'true' + # id: install_thunder + # run: | + # .github/workflows/utils.sh cloneAndInstallThunder - - name: Build Core SDK CPP - if: env.build_cpp_source == 'true' - id: build_core_cpp - run: | - .github/workflows/utils.sh buildCoreCPPSDK $RELEASE_VERSION + # - name: Build Core SDK CPP + # if: env.build_cpp_source == 'true' + # id: build_core_cpp + # run: | + # .github/workflows/utils.sh buildCoreCPPSDK $RELEASE_VERSION # - name: Upload SDK artifact # if: success() diff --git a/.github/workflows/utils.sh b/.github/workflows/utils.sh index 276ae229e..abd8043a6 100755 --- a/.github/workflows/utils.sh +++ b/.github/workflows/utils.sh @@ -168,42 +168,45 @@ function generateSource() { cd build/cpp/src/ ls -la echo " ************ Source Generation Completed for Core SDK ************" + echo "***************** firebolt.h *****************" + cat include/firebolt.h + else echo "Native Core 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 ************" - 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 ************" + # 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 } function cloneAndInstallThunder() { @@ -291,6 +294,10 @@ function buildCoreCPPSDK() { 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 "$current_dir/install" || exit 9999 ./build.sh -f "$current_dir/data/firebolt-core-native-sdk-${FIREBOLT_VERSION}/build/Firebolt" -s "$current_dir/install"