Skip to content

Commit

Permalink
just gen source
Browse files Browse the repository at this point in the history
  • Loading branch information
ksentak committed Aug 22, 2024
1 parent cfe3ec2 commit cd6a2e0
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 41 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
69 changes: 38 additions & 31 deletions .github/workflows/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit cd6a2e0

Please sign in to comment.