Commit aa845f9
committed
fix(bb): cache Emscripten .js loader and .worker.mjs siblings of .wasm targets
preset_cache_paths only matched targets by name + native sibling extensions
(.exe, .node, lib*.a). Emscripten emits a .js loader and .worker.mjs pthread
worker alongside every .wasm exec target as a unit, so cache_upload missed
them and a wasm-threads cache hit restored barretenberg.wasm without the
matching barretenberg.js.
bb-ts/scripts/copy_wasm.sh then unconditionally copies cpp/build-wasm-threads/
bin/barretenberg.js into dest/<flavor>/barretenberg_wasm/, which fast-mode CI
hits before any cache miss can rebuild the cpp side, producing:
cp: cannot stat '../cpp/build-wasm-threads/bin/barretenberg.js': No such file or directory
Extend preset_cache_paths so any target ending in .wasm also picks up the
$stem.js and $stem.worker.mjs siblings from the same bin/ directory.1 parent d6a4fc6 commit aa845f9
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
90 | 99 | | |
91 | 100 | | |
92 | 101 | | |
| |||
0 commit comments