Skip to content

Commit

Permalink
chore(scripts): Convenience script to update local generated artifacts (
Browse files Browse the repository at this point in the history
#1349)

Adds a convenience script that updates all local generated artifacts.
Useful after pulling latest master on a working copy that's already set
up. When no changes are needed, it runs in about 10s (most of it being
recompiling noir contracts, since we are not detecting if rebuild is
needed or not for them), compared to a bootstrap.sh run that takes over
1min.
  • Loading branch information
spalladino authored Aug 1, 2023
1 parent cb5ce9e commit 317981a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions scripts/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
set -eu

# Script for running after updating the working copy with remote changes.
# Similar to bootstrap, but more lightweight and oriented towards working on end-to-end.

echo -e '\033[1mRebuild L1 contracts...\033[0m'
(cd l1-contracts && forge build)

echo -e '\n\033[1mUpdate npm deps...\033[0m'
(cd yarn-project && yarn install)

echo -e '\n\033[1mRebuild Noir contracts...\033[0m'
(cd yarn-project/noir-contracts && yarn noir:build:all 2> /dev/null)

echo -e '\n\033[1mRebuild circuits wasm...\033[0m'
(cd circuits/cpp && cmake --build --preset wasm -j --target aztec3-circuits.wasm)

0 comments on commit 317981a

Please sign in to comment.