CI: clear stale build cache

albatross
Adeeb Shihadeh 2021-04-01 15:02:26 -07:00
parent 9afa14c47f
commit 25837cfb86
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ if [ ! -d "$SOURCE_DIR" ]; then
git clone --depth 1 https://github.com/commaai/openpilot.git "$SOURCE_DIR"
fi
# clear scons cache dirs that haven't been written to in one day
#cd /tmp && find -name 'scons_cache_*' -type d -maxdepth 1 -mtime +1 -exec rm -rf '{}' \;
# clear stale build cache
find /tmp/scons_cache/* -mtime +2 -exec ls '{}' \;
# this can get really big on the CI devices
rm -rf /data/core