Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bootstrap build circuits #108

Closed
wants to merge 5 commits into from
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ fi

git submodule update --init --recursive

# `yarn-project/barretenberg.js/src/wasm/barretenberg.wasm` is a symlink to `circuits/cpp/build-wasm/bin/aztec3-circuits.wasm`.
# So let's make sure the latter exists!
if [ ! -f circuits/cpp/build-wasm/bin/aztec3-circuits.wasm ]; then
echo "Circuits not built. Building."
(cd circuits/cpp && ./bootstrap.sh)
fi

if [ ! -f ~/.nvm/nvm.sh ]; then
echo "Nvm not found at ~/.nvm"
exit 1
Expand All @@ -41,6 +48,7 @@ yarn install --immutable
cd ..

# We only bootstrap projects that produce artefacts needed for running end-to-end tests.
# TODO: someone should figure out which of these actually need to be built for e2e tests, so we're not building everything (it's too slow!).
PROJECTS=(
"yarn-project/foundation:yarn build"
"yarn-project/ethereum.js:yarn build"
Expand Down Expand Up @@ -71,5 +79,10 @@ for E in "${PROJECTS[@]}"; do
popd > /dev/null
done

if [ ! -f barratenberg.js/src/wasm/barretenberg.wasm ]; then
iAmMichaelConnor marked this conversation as resolved.
Show resolved Hide resolved
echo "Copying barretenberg.wasm symlink"
(cd yarn-project/barretenberg.js && cp src/wasm/barretenberg.wasm dest/wasm/barretenberg.wasm)
fi

echo
echo "Success! You could now run e.g.: ./scripts/tmux-splits e2e_deploy_contract"