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 16:49:39 +01:00 committed by Xiang Xiao
parent f000ed733f
commit a78a3a461b

View file

@ -143,6 +143,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:
@ -183,6 +193,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: