Skip to content

Commit fd841c7

Browse files
committed
ci: remove dummy WASM generation and install deps properly
1 parent 2c3f10a commit fd841c7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/release-wasm.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ jobs:
2525
sudo apt-get update && sudo apt-get install -y binaryen
2626
- name: Build WASM
2727
run: |
28+
make install_deps
2829
if [ -f Makefile ] && grep -q build_wasm Makefile; then
29-
make build_wasm || true
30+
make build_wasm
3031
cp bin/*.wasm . 2>/dev/null || cp build/*.wasm . 2>/dev/null || cp target/wasm32-wasip1/release/*.wasm . 2>/dev/null || true
3132
fi
32-
# Fallback to dummy if no wasm was found
3333
if ! ls *.wasm 1> /dev/null 2>&1; then
34-
echo -n -e '\x00asm\x01\x00\x00\x00' > cdd-python-all.wasm
34+
echo "Error: No WASM file built."
35+
exit 1
3536
fi
3637
for f in *.wasm; do
3738
if [ -f "$f" ]; then

0 commit comments

Comments
 (0)