File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -217,15 +217,35 @@ jobs:
217217 #git commit -s -a -m "getting rid of -dirty"
218218
219219 BUILD_TYPE="gki"
220- BAZEL_ARGS=(--jobs=$(nproc --all) --verbose_failures --lto=thin)
220+ BAZEL_ARGS=(--jobs=$(nproc --all) --verbose_failures --lto=thin --sandbox_debug --verbose_failures --subcommands )
221221 if [ "${{ inputs.soc }}" == "sun" ]; then
222222 BUILD_TYPE="perf"
223223 BAZEL_ARGS+=(-g)
224224 fi
225225
226+ (while true; do
227+ echo "=== $(date) ==="
228+ free -h
229+ echo "======"
230+ df -h
231+ echo "======"
232+ top -b -n 1 | head -n 15
233+ echo ""
234+ sleep 60
235+ done) &
236+ MONITOR_PID=$!
237+ trap "kill $MONITOR_PID" EXIT
238+
239+ bash -c '
240+ while true; do
241+ sync; echo 3 > /proc/sys/vm/drop_caches
242+ sleep 120
243+ done
244+ ' >/dev/null 2>&1 &
245+
226246 if [ -f ./kernel_platform/build_with_bazel.py ]; then
227247 ./kernel_platform/oplus/bazel/oplus_modules_variant.sh ${{ inputs.soc }} "$BUILD_TYPE" ""
228- ./kernel_platform/build_with_bazel.py -t ${{ inputs.soc }} " $BUILD_TYPE" "${BAZEL_ARGS[@]}" -o "$(pwd)/out"
248+ ./kernel_platform/build_with_bazel.py -t ${{ inputs.soc }} $BUILD_TYPE "${BAZEL_ARGS[@]}" -o "$(pwd)/out"
229249 else
230250 LTO=thin ./kernel_platform/oplus/build/oplus_build_kernel.sh ${{ inputs.soc }} "$BUILD_TYPE"
231251 fi
You can’t perform that action at this time.
0 commit comments