mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -331,6 +331,16 @@ jobs:
|
|||||||
timeout-minutes: 90
|
timeout-minutes: 90
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
- 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
|
- name: Run container test suite
|
||||||
# Attribute the job to test-unit: it runs the full integration suite
|
# Attribute the job to test-unit: it runs the full integration suite
|
||||||
# against the container's real binaries (ffmpeg/qpdf/tesseract/...), which
|
# against the container's real binaries (ffmpeg/qpdf/tesseract/...), which
|
||||||
|
|||||||
Reference in New Issue
Block a user