Skip to content

Commit c8570f1

Browse files
committed
try quotes
1 parent 2c11d7e commit c8570f1

File tree

2 files changed

+50
-50
lines changed

2 files changed

+50
-50
lines changed

.github/workflows/manual-web-examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Install dependencies
3939
run: ./scripts/ci/$TARGET/install_web_examples.sh
4040
- name: Build
41-
run: docker exec -e GA_EXAMPLES_USER=${{ secrets.SSH_USER }} -e GA_EXAMPLES_SERVER=${{ secrets.SSH_SERVER }} -e GA_EXAMPLES_KEY=${{ secrets.SSH_KEY }} -e GH_HEAD_REF=${{ github.head_ref }} -e GH_BRANCH=${{ github.ref_name }} -e GH_ACTIONS=true -i emscripten sh -c "scripts/ci/$TARGET/examples_to_build.sh"
41+
run: docker exec -e GA_EXAMPLES_USER=${{ secrets.SSH_USER }} -e GA_EXAMPLES_SERVER=${{ secrets.SSH_SERVER }} -e GA_EXAMPLES_KEY="${{ secrets.SSH_KEY }}" -e GH_HEAD_REF=${{ github.head_ref }} -e GH_BRANCH=${{ github.ref_name }} -e GH_ACTIONS=true -i emscripten sh -c "scripts/ci/$TARGET/examples_to_build.sh"
4242
env:
4343
GA_EXAMPLES_USER: ${{ secrets.SSH_USER }}
4444
GA_EXAMPLES_SERVER: ${{ secrets.SSH_SERVER }}

scripts/ci/emscripten/examples_to_build.sh

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -13,52 +13,52 @@ folders=(
1313
echo "RUNNING IN CI ${GH_BRANCH} ${GH_ACTIONS}"
1414
echo "TRYING USER/SERVER ${GA_EXAMPLES_USER}@${GA_EXAMPLES_SERVER}"
1515

16-
cur_root=$(pwd);
17-
cd $cur_root;
18-
mkdir -p out
19-
out_folder="$cur_root/out"
20-
21-
# Iterate through the folder paths
22-
for folder in "${folders[@]}"; do
23-
# Check if the folder exists
24-
if [ -d "$folder" ]; then
25-
26-
# Change to the directory
27-
cd $folder
28-
cp ../../../scripts/templates/emscripten/Makefile .
29-
cp ../../../scripts/templates/emscripten/config.make .
30-
emmake make -j2 Release
31-
32-
errorcode=$?
33-
if [[ $errorcode -ne 0 ]]; then
34-
echo "Couldn't build emscripten example: $folder"
35-
else
36-
folder_name=$(basename "$folder")
37-
cp -r "bin/em/$folder_name" "$out_folder/"
38-
fi
39-
40-
cd $cur_root
41-
else
42-
echo "Folder does not exist: $folder"
43-
fi
44-
done
45-
46-
cd $cur_root;
47-
DO_UPLOAD="false"
48-
49-
#if [[ "$GH_ACTIONS" = true && "${GH_BRANCH}" == "master" && -z "${GH_HEAD_REF}" ]]; then
50-
if [[ "$GH_ACTIONS" = "true" ]]; then
51-
echo "upload 1/2 - make key file"
52-
# Temporary file to store the private key
53-
key_file=$(mktemp)
54-
echo -e "$GA_EXAMPLES_KEY" > "$key_file"
55-
chmod 600 "$key_file"
56-
DO_UPLOAD="true";
57-
fi
58-
59-
if [ "$DO_UPLOAD" = "true" ]; then
60-
echo "upload 2/2 - time for rsync"
61-
remote_path="/home/ofadmin/openFrameworks.cc/examples/"
62-
rsync -avz -e "ssh -i $key_file" "$out_folder/" "$GA_EXAMPLES_USER@$GA_EXAMPLES_SERVER:$remote_path"
63-
rm -f "$key_file"
64-
fi
16+
#cur_root=$(pwd);
17+
#cd $cur_root;
18+
#mkdir -p out
19+
#out_folder="$cur_root/out"
20+
#
21+
## Iterate through the folder paths
22+
#for folder in "${folders[@]}"; do
23+
# # Check if the folder exists
24+
# if [ -d "$folder" ]; then
25+
#
26+
# # Change to the directory
27+
# cd $folder
28+
# cp ../../../scripts/templates/emscripten/Makefile .
29+
# cp ../../../scripts/templates/emscripten/config.make .
30+
# emmake make -j2 Release
31+
#
32+
# errorcode=$?
33+
# if [[ $errorcode -ne 0 ]]; then
34+
# echo "Couldn't build emscripten example: $folder"
35+
# else
36+
# folder_name=$(basename "$folder")
37+
# cp -r "bin/em/$folder_name" "$out_folder/"
38+
# fi
39+
#
40+
# cd $cur_root
41+
# else
42+
# echo "Folder does not exist: $folder"
43+
# fi
44+
#done
45+
#
46+
#cd $cur_root;
47+
#DO_UPLOAD="false"
48+
#
49+
##if [[ "$GH_ACTIONS" = true && "${GH_BRANCH}" == "master" && -z "${GH_HEAD_REF}" ]]; then
50+
#if [[ "$GH_ACTIONS" = "true" ]]; then
51+
# echo "upload 1/2 - make key file"
52+
# # Temporary file to store the private key
53+
# key_file=$(mktemp)
54+
# echo -e "$GA_EXAMPLES_KEY" > "$key_file"
55+
# chmod 600 "$key_file"
56+
# DO_UPLOAD="true";
57+
#fi
58+
#
59+
#if [ "$DO_UPLOAD" = "true" ]; then
60+
# echo "upload 2/2 - time for rsync"
61+
# remote_path="/home/ofadmin/openFrameworks.cc/examples/"
62+
# rsync -avz -e "ssh -i $key_file" "$out_folder/" "$GA_EXAMPLES_USER@$GA_EXAMPLES_SERVER:$remote_path"
63+
# rm -f "$key_file"
64+
#fi

0 commit comments

Comments
 (0)