[canvaskit] Ensure clean build on CI

Hypothesis that the gen and obj folders not being deleted led to some
failed builds if there were conflicting object files.

Change-Id: I63df08092bf7d325c0f008d429dd13981f0a67a5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/421496
Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
Kevin Lubick 2021-06-24 14:32:41 -04:00
parent bd7ed7434a
commit 559185ad34
2 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,10 @@ set -x
# Clean out previous builds (ignoring any errors for things like folders)
# (e.g. we don't want to delete /OUT/depot_tools/)
rm -f /OUT/*
# We want to clean out previously generated code and object files to avoid
# previous builds contaminating this one.
rm -rf /OUT/gen
rm -rf /OUT/obj
set -e
#BASE_DIR is the dir this script is in ($SKIA_ROOT/infra/canvaskit)

View File

@ -13,6 +13,10 @@ set -x
# Clean out previous builds (ignoring any errors for things like folders)
# (e.g. we don't want to delete /OUT/depot_tools/)
rm -f /OUT/*
# We want to clean out previously generated code and object files to avoid
# previous builds contaminating this one.
rm -rf /OUT/gen
rm -rf /OUT/obj
set -e
#BASE_DIR is the dir this script is in ($SKIA_ROOT/infra/pathkit)