Skip to content

Commit

Permalink
fix: rebuild patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr committed Oct 9, 2024
1 parent a1ef911 commit 230d53a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion avm-transpiler/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ build:
# build avm transpiler, and make sure the big build and deps folders don't hit cache
DO ../build-system/s3-cache-scripts/+WITH_CACHE \
--prefix="avm-transpiler" \
--rebuild_patterns=".rebuild_patterns" \
--rebuild_patterns="../noir/.rebuild_patterns_native .rebuild_patterns" \
--command="./scripts/bootstrap_native.sh && rm -rf target/release/{build,deps}" \
--build_artifacts="target"
SAVE ARTIFACT target/release/avm-transpiler avm-transpiler
Expand Down
2 changes: 1 addition & 1 deletion avm-transpiler/bootstrap_cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ cd "$(dirname "$0")"
source ../build-system/scripts/setup_env '' '' mainframe_$USER > /dev/null

echo -e "\033[1mRetrieving avm-transpiler from remote cache...\033[0m"
HASH=$(AZTEC_CACHE_REBUILD_PATTERNS=.rebuild_patterns compute-content-hash.sh)
HASH=$(AZTEC_CACHE_REBUILD_PATTERNS="../noir/.rebuild_patterns_native .rebuild_patterns" compute-content-hash.sh)
cache-download.sh avm-transpiler-$HASH.tar.gz > /dev/null
9 changes: 6 additions & 3 deletions barretenberg/ts/bootstrap_cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ cd "$(dirname "$0")"
source ../../build-system/scripts/setup_env '' '' mainframe_$USER > /dev/null

echo -e "\033[1mRetrieving bb.js from remote cache...\033[0m"
extract_repo_if_working_copy_clean bb.js /usr/src/barretenberg/ts/dest .
HASH=$(AZTEC_CACHE_REBUILD_PATTERNS="../cpp/.rebuild_patterns .rebuild_patterns" compute-content-hash.sh)

cache-download.sh bb.js-esm-$HASH.tar.gz > /dev/null
cache-download.sh bb.js-cjs-$HASH.tar.gz > /dev/null
cache-download.sh bb.js-browser-$HASH.tar.gz > /dev/null

# Annoyingly we still need to install modules, so they can be found as part of module resolution when portalled.
yarn install

remove_old_images bb.js
2 changes: 1 addition & 1 deletion noir/bootstrap_cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ NATIVE_HASH=$(AZTEC_CACHE_REBUILD_PATTERNS=.rebuild_patterns_native compute-cont
cache-download.sh noir-nargo-$NATIVE_HASH.tar.gz > /dev/null

echo -e "\033[1mRetrieving nargo from remote cache...\033[0m"
PACKAGES_HASH=$(AZTEC_CACHE_REBUILD_PATTERNS=.rebuild_patterns_packages compute-content-hash.sh)
PACKAGES_HASH=$(AZTEC_CACHE_REBUILD_PATTERNS="../barretenberg/cpp/.rebuild_patterns .rebuild_patterns_packages" compute-content-hash.sh)
cache-download.sh noir-packages-$PACKAGES_HASH.tar.gz

0 comments on commit 230d53a

Please sign in to comment.