Skip to content

Commit b27feb1

Browse files
committed
use tar instead of bazel
1 parent 68c3f7b commit b27feb1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

02-BUILD.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
cd zml
2-
echo "Starting Bazel build..."
3-
bazel build //zml:sources
2+
# We don't use bazel build //zml:sources
3+
# because it pulls too many files.
4+
# Some could be useful like sentencepiece.pb.zig,
5+
# but they aren't properly put in places where the wasm code expects them,
6+
# resulting in broken links + polluting the search bar.
7+
tar -cf sources.tar zml/*.zig zml/**/*.zig
48
cd ..
5-
cp ./zml/bazel-bin/zml/sources.tar WORKSPACE/
9+
cp -f ./zml/sources.tar WORKSPACE/
610

711
cd WORKSPACE
812
echo "Starting Zine build..."

0 commit comments

Comments
 (0)