File tree 4 files changed +23
-15
lines changed
4 files changed +23
-15
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ TARGET="all"
14
14
BUILD_TYPE=" all"
15
15
SKIP_ENV=0
16
16
COPY_OUT=0
17
- DEPLOY_OUT=0
17
+ if [ -z $DEPLOY_OUT ]; then
18
+ DEPLOY_OUT=0
19
+ fi
18
20
19
21
function print_help() {
20
22
echo " Usage: build.sh [-s] [-A <arduino_branch>] [-I <idf_branch>] [-i <idf_commit>] [-c <path>] [-t <target>] [-b <build|menuconfig|reconfigure|idf_libs|copy_bootloader|mem_variant>] [config ...]"
@@ -195,17 +197,19 @@ if [ "$BUILD_TYPE" = "all" ]; then
195
197
if [ $? -ne 0 ]; then exit 1; fi
196
198
fi
197
199
198
- # archive the build
199
- if [ " $BUILD_TYPE " = " all" ]; then
200
- ./tools/archive-build.sh
201
- if [ $? -ne 0 ]; then exit 1; fi
202
- fi
203
-
204
200
# copy everything to arduino-esp32 installation
205
201
if [ $COPY_OUT -eq 1 ] && [ -d " $ESP32_ARDUINO " ]; then
206
202
./tools/copy-to-arduino.sh
203
+ if [ $? -ne 0 ]; then exit 1; fi
207
204
fi
208
205
209
206
if [ $DEPLOY_OUT -eq 1 ]; then
210
207
./tools/push-to-arduino.sh
208
+ if [ $? -ne 0 ]; then exit 1; fi
209
+ fi
210
+
211
+ # archive the build
212
+ if [ " $BUILD_TYPE " = " all" ]; then
213
+ ./tools/archive-build.sh
214
+ if [ $? -ne 0 ]; then exit 1; fi
211
215
fi
Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ IDF_BRANCH=$(git -C "$IDF_PATH" symbolic-ref --short HEAD || git -C "$IDF_PATH"
5
5
6
6
idf_version_string=${IDF_BRANCH// \/ / _} " -$IDF_COMMIT "
7
7
archive_path=" dist/arduino-esp32-libs-$idf_version_string .tar.gz"
8
- build_archive_path=" dist/arduino-esp32-build-$idf_version_string .tar.gz"
8
+ # build_archive_path="dist/arduino-esp32-build-$idf_version_string.tar.gz"
9
9
10
10
mkdir -p dist && rm -rf " $archive_path " " $build_archive_path "
11
11
if [ -d " out" ]; then
12
12
cd out && tar zcf " ../$archive_path " * && cd ..
13
13
fi
14
- if [ -d " build" ]; then
15
- cd build && tar zcf " ../$build_archive_path " * && cd ..
16
- fi
14
+ # if [ -d "build" ]; then
15
+ # cd build && tar zcf "../$build_archive_path" * && cd ..
16
+ # fi
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ if [ "$GITHUB_EVENT_NAME" == "schedule" ] || [ "$GITHUB_EVENT_NAME" == "reposito
58
58
AR_NEW_COMMIT_MESSAGE=" IDF $IDF_COMMIT "
59
59
AR_NEW_PR_TITLE=" $AR_NEW_COMMIT_MESSAGE "
60
60
fi
61
- LIBS_VERSION=" idf-$ IDF_BRANCH -$IDF_COMMIT "
61
+ LIBS_VERSION=" idf-" ${ IDF_BRANCH// \/ / _} " -$IDF_COMMIT "
62
62
63
63
AR_HAS_COMMIT=` git_commit_exists " $AR_COMPS /arduino" " $AR_NEW_COMMIT_MESSAGE " `
64
64
AR_HAS_BRANCH=` git_branch_exists " $AR_COMPS /arduino" " $AR_NEW_BRANCH_NAME " `
Original file line number Diff line number Diff line change @@ -42,8 +42,12 @@ if [ ! "$arduino" == "" ] && [ ! "$arduino" == "null" ]; then
42
42
export AR_BRANCH=" $arduino "
43
43
fi
44
44
45
- source ./build.sh
46
-
47
45
if [ " $action " == " deploy" ]; then
48
- bash ./tools/push-to-arduino.sh
46
+ DEPLOY_OUT=1
49
47
fi
48
+
49
+ source ./build.sh
50
+
51
+ # if [ "$action" == "deploy" ]; then
52
+ # bash ./tools/push-to-arduino.sh
53
+ # fi
You can’t perform that action at this time.
0 commit comments