File tree Expand file tree Collapse file tree 8 files changed +24
-10
lines changed Expand file tree Collapse file tree 8 files changed +24
-10
lines changed Original file line number Diff line number Diff line change 87
87
- name : script
88
88
run : bash build-scripts/CI/CIBB_32b -r $RPI_TYPE -o $RPIOS_TYPE
89
89
shell : bash
90
- if : success() && (github.event_name == 'pull_request' || github.event_name == 'release')
90
+ if : success() && (github.event_name == 'pull_request' || github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')) )
91
91
- name : before_script
92
92
run : bash patches/curl_stfp_patcher
93
93
shell : bash
Original file line number Diff line number Diff line change 85
85
- name : script
86
86
run : bash build-scripts/CI/CIBB_32b -r $RPI_TYPE -o $RPIOS_TYPE
87
87
shell : bash
88
- if : success() && (github.event_name == 'pull_request' || github.event_name == 'release')
88
+ if : success() && (github.event_name == 'pull_request' || github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')) )
89
89
- name : before_script
90
90
run : bash patches/curl_stfp_patcher
91
91
shell : bash
Original file line number Diff line number Diff line change 85
85
- name : script
86
86
run : bash build-scripts/CI/CIBB_32b -r $RPI_TYPE -o $RPIOS_TYPE
87
87
shell : bash
88
- if : success() && (github.event_name == 'pull_request' || github.event_name == 'release')
88
+ if : success() && (github.event_name == 'pull_request' || github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')) )
89
89
- name : before_script
90
90
run : bash patches/curl_stfp_patcher
91
91
shell : bash
Original file line number Diff line number Diff line change 89
89
- name : script
90
90
run : bash build-scripts/CI/CIBB_64b -g $GCC_VERSION -o $RPIOS_TYPE
91
91
shell : bash
92
- if : success() && (github.event_name == 'pull_request' || github.event_name == 'release')
92
+ if : success() && (github.event_name == 'pull_request' || github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '[DEBUG]')) )
93
93
- name : before_script
94
94
run : bash patches/curl_stfp_patcher
95
95
shell : bash
Original file line number Diff line number Diff line change @@ -224,3 +224,11 @@ echo "Done Building Cross GCC $GCC_VERSION BASE Binaries..."
224
224
225
225
# clean path
226
226
PATH=$( echo " $PATH " | sed -e ' s;:\?$BUILDDIR/cross-pi-gcc-$GCC_VERSION-$FOLDER_VERSION/bin;;' -e ' s;$BUILDDIR/cross-pi-gcc-$GCC_VERSION-$FOLDER_VERSION/bin:\?;;' )
227
+
228
+ # throw error if archieve doesn't exists
229
+ if [[ ! -f " cross-gcc-$GCC_VERSION -pi_$RPI_TYPE .tar.gz" ]]; then
230
+ echo " File cross-gcc-$GCC_VERSION -pi_$RPI_TYPE .tar.gz doesn't created. Aborting!"
231
+ exit 1
232
+ else
233
+ echo " File cross-gcc-$GCC_VERSION -pi_$RPI_TYPE .tar.gz of size $( stat -c%s " cross-gcc-$GCC_VERSION -pi_$RPI_TYPE .tar.gz" ) created successfully."
234
+ fi
Original file line number Diff line number Diff line change @@ -214,3 +214,11 @@ echo "Done Building Cross GCC $GCC_VERSION BASE Binaries..."
214
214
215
215
# clean path
216
216
PATH=$( echo " $PATH " | sed -e ' s;:\?$BUILDDIR/cross-pi-gcc-$GCC_VERSION-$FOLDER_VERSION/bin;;' -e ' s;$BUILDDIR/cross-pi-gcc-$GCC_VERSION-$FOLDER_VERSION/bin:\?;;' )
217
+
218
+ # throw error if archieve doesn't exists
219
+ if [[ ! -f " cross-gcc-$GCC_VERSION -pi_$FOLDER_VERSION .tar.gz" ]]; then
220
+ echo " File cross-gcc-$GCC_VERSION -pi_$FOLDER_VERSION .tar.gz doesn't created. Aborting!"
221
+ exit 1
222
+ else
223
+ echo " File cross-gcc-$GCC_VERSION -pi_$FOLDER_VERSION .tar.gz of size $( stat -c%s " cross-gcc-$GCC_VERSION -pi_$FOLDER_VERSION .tar.gz" ) created successfully."
224
+ fi
Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ if [ -f "$HOME/cross-gcc-$GCC_VERSION-pi_$RPI_TYPE.tar.gz" ]; then
76
76
fi
77
77
fi
78
78
fi
79
+ else
80
+ echo " Cannot find $HOME /cross-gcc-$GCC_VERSION -pi_$RPI_TYPE .tar.gz"
79
81
fi
80
82
81
83
# Deploy Native-compiler Toolchain binaries
@@ -113,6 +115,8 @@ if [ -f "$HOME/native-gcc-$GCC_VERSION-pi_$RPI_TYPE.tar.gz" ]; then
113
115
fi
114
116
fi
115
117
fi
118
+ else
119
+ echo " Cannot find $HOME /native-gcc-$GCC_VERSION -pi_$RPI_TYPE .tar.gz"
116
120
fi
117
121
118
122
if [ -f " $HOME /desktop-gcc-$GCC_VERSION -pi_$OS_TYPE .tar.gz" ]; then
Original file line number Diff line number Diff line change @@ -52,12 +52,6 @@ if [ -z "$SOURCE" ] || [ -z "$DESTINATION" ]; then
52
52
helpFunction
53
53
fi
54
54
55
- # throw error if source doesn't exists
56
- if [[ ! -d " $SOURCE " && ! -f " $SOURCE " ]]; then
57
- echo " Source $SOURCE doesn't exist. Aborting!"
58
- exit 1
59
- fi
60
-
61
55
# get valid destination
62
56
if [[ -f $DESTINATION ]]; then
63
57
# get parent directory
You can’t perform that action at this time.
0 commit comments