From 9c3f746051661303dcc3343c047c4da2a639e4ec Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Mon, 8 Jan 2024 11:10:54 -0300 Subject: [PATCH] Add BOOTSTRAP_USE_REMOTE_CACHE flag --- bootstrap.sh | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index ac402f07baa..e6e8ebe7c28 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -50,13 +50,23 @@ chmod +x $HOOKS_DIR/pre-commit git submodule update --init --recursive -PROJECTS=( - barretenberg - noir - l1-contracts - yarn-project -) +# Load remote builds for bb and noir if BOOTSTRAP_USE_REMOTE_CACHE is set +if [ -n "${BOOTSTRAP_USE_REMOTE_CACHE:-}" ]; then + ./bootstrap_cache.sh + PROJECTS=( + l1-contracts + yarn-project + ) +else + PROJECTS=( + barretenberg + noir + l1-contracts + yarn-project + ) +fi +# Build projects locally for P in "${PROJECTS[@]}"; do echo "**************************************" echo -e "\033[1mBootstrapping $P...\033[0m"