File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,24 @@ jobs:
188188
189189 echo "Building the kernel..."
190190 rm -rf ./kernel_platform/common/android/abi_gki_protected_exports_*
191- ./kernel_platform/oplus/build/oplus_build_kernel.sh kalama gki
191+ ./kernel_platform/oplus/build/oplus_build_kernel.sh kalama gki &
192+ # Save the PID of the background process
193+ BUILD_PID=$!
194+ # Loop and monitor memory and disk usage every 10 seconds until the build finishes
195+ while kill -0 $BUILD_PID 2>/dev/null; do
196+ echo "==== Memory Usage ===="
197+ free -h
198+ echo
199+ echo "==== Disk Usage ===="
200+ df -h
201+ echo
202+ sleep 10 # Wait for 10 seconds
203+ done
204+
205+ - name : Get build space
206+ run : |
207+ free -h
208+ df -h
192209
193210 - name : Create Bootimgs Folder and Copy Images
194211 run : |
You can’t perform that action at this time.
0 commit comments