ci(nightly): free disk before the Docker Container E2E build (#700)

The job builds a ~15GB image on three containers and has been terminated mid-run (exit 137, tests passing) on standard runners. Reclaim preinstalled toolchains before building to reduce the resource pressure correlated with the terminations.
This commit is contained in:
SnapOtter
2026-07-31 10:59:58 +08:00
committed by GitHub
parent 734bccb674
commit e815676505
+10
View File
@@ -331,6 +331,16 @@ jobs:
timeout-minutes: 90
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Free disk space
# The from-scratch image is ~15 GB and the build layers add more on top
# of three running containers, which crowds a standard runner and has
# correlated with the VM being terminated mid-run (exit 137). Reclaim the
# preinstalled toolchains this job never uses before building.
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc \
/opt/hostedtoolcache/CodeQL /usr/local/share/boost "$AGENT_TOOLSDIRECTORY" || true
sudo docker image prune -af || true
df -h /
- name: Run container test suite
# Attribute the job to test-unit: it runs the full integration suite
# against the container's real binaries (ffmpeg/qpdf/tesseract/...), which