Skip to content

Commit

Permalink
add manage and discovery to run all three
Browse files Browse the repository at this point in the history
  • Loading branch information
ksentak committed Aug 22, 2024
1 parent b9f26e5 commit 1356e11
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 42 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
66 changes: 35 additions & 31 deletions .github/workflows/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 1356e11

Please sign in to comment.