Skip to content

Commit 775d261

Browse files
Update build-kernel-op11.yml
1 parent 300a762 commit 775d261

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/build-kernel-op11.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)