workflows/build.yml: fix fatal: write error: No space left on device

Fixed error verified in this PR https://github.com/apache/nuttx/pull/17423

added to the workflow:

- Show Disk Space

- Free Disk Space (Ubuntu)
  Only Android runtime removed

- Post-build Disk Space

We can now monitor disk space.

Signed-off-by: simbit18 <simbit18@gmail.com>
This commit is contained in:
simbit18
2025-12-04 11:43:19 +01:00
committed by Lup Yuen Lee
parent 21b9b919cc
commit 424aa6be0f
+14
View File
@@ -154,6 +154,16 @@ jobs:
steps:
- name: Show Disk Space
run: df -h
- name: Free Disk Space (Ubuntu)
run: |
sudo rm -rf /usr/local/lib/android
- name: After CLEAN-UP Disk Space
run: df -h
- name: Download Source Artifact
uses: actions/download-artifact@v6
with:
@@ -194,6 +204,10 @@ jobs:
./cibuild.sh -c -A -N -R -S testlist/${{matrix.boards}}.dat
fi
- name: Post-build Disk Space
if: always()
run: df -h
- uses: actions/upload-artifact@v5
if: ${{ always() }}
with: