From a1ef911cf157f4ffaf8ad13e1288b1618fb43bc3 Mon Sep 17 00:00:00 2001 From: Alex Gherghisan Date: Wed, 9 Oct 2024 14:17:41 +0000 Subject: [PATCH] fix: bb.js caching --- barretenberg/ts/Earthfile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/barretenberg/ts/Earthfile b/barretenberg/ts/Earthfile index e4df38e4c5da..798bb685e376 100644 --- a/barretenberg/ts/Earthfile +++ b/barretenberg/ts/Earthfile @@ -6,12 +6,11 @@ CACHE: ARG build_artifacts ARG prefix # TODO(#8929): reinstate bb.js caching - RUN $command - # DO ../../build-system/s3-cache-scripts/+WITH_CACHE \ - # --prefix="bb.js-$prefix" \ - # --command="$command" \ - # --rebuild_patterns="../cpp/.rebuild_patterns .rebuild_patterns" \ - # --build_artifacts="$build_artifacts" + DO ../../build-system/s3-cache-scripts/+WITH_CACHE \ + --prefix="bb.js-$prefix" \ + --command="$command" \ + --rebuild_patterns="../cpp/.rebuild_patterns .rebuild_patterns" \ + --build_artifacts="$build_artifacts" deps: FROM ../../build-images+from-registry @@ -34,7 +33,7 @@ deps: esm: FROM +deps DO +CACHE \ - --prefix="browser" \ + --prefix="esm" \ --command="yarn build:esm" \ --build_artifacts="." SAVE ARTIFACT /usr/src/barretenberg/ts build