Skip to content

Commit cf68a3a

Browse files
committed
kokoro: clean up useless data the nightly build to save disk space
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 5c42bef commit cf68a3a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/kokoro/steps/vtr-test.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,26 @@ echo "========================================"
4747
export VPR_NUM_WORKERS=1
4848
./run_reg_test.py $VTR_TEST $VTR_TEST_OPTIONS -j$NUM_CORES
4949
kill $MONITOR
50+
51+
echo "========================================"
52+
echo "Cleaning benchmarks files"
53+
echo "========================================"
54+
# Removing Symbiflow archs and benchmarks
55+
find vtr_flow/arch/symbiflow/ -type f -not -name 'README.*' -delete
56+
find vtr_flow/benchmarks/symbiflow/ -type f -not -name 'README.*' -delete
57+
58+
# Removing ISPD benchmarks
59+
find vtr_flow/benchmarks/ispd_blif/ -type f -not -name 'README.*' -delete
60+
61+
# Removing Titan benchmarks
62+
find vtr_flow/benchmarks/titan_blif/ -type f -not -name 'README.*' -delete
63+
64+
# Removing ISPD, Titan and Symbiflow tarballs
65+
find . -type f -regex ".*\.tar\.\(gz\|xz\)" -delete
66+
67+
# Make sure working directory doesn't exceed disk space limit!
68+
echo "Working directory size: $(du -sh)"
69+
if [[ $(du -s | cut -d $'\t' -f 1) -gt $(expr 1024 \* 1024 \* 90) ]]; then
70+
echo "Working directory too large!"
71+
exit 1
72+
fi

0 commit comments

Comments
 (0)