Skip to content

Commit

Permalink
Add BOOTSTRAP_USE_REMOTE_CACHE flag
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Jan 9, 2024
1 parent 720d508 commit 9c3f746
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9c3f746

Please sign in to comment.