Skip to content

Commit ecb97c9

Browse files
committed
WIP: Quick and dirty - get WASM to pass CI
1 parent c6b103a commit ecb97c9

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

contrib/_test.sh

-15
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,6 @@ if [ "$DO_DOCS" = true ]; then
8383
RUSTDOCFLAGS="-D warnings" cargo +stable doc --all-features
8484
fi
8585

86-
# Webassembly stuff
87-
if [ "$DO_WASM" = true ]; then
88-
clang --version
89-
CARGO_TARGET_DIR=wasm cargo install --force wasm-pack
90-
91-
cp Cargo.toml orig-Cargo.toml
92-
printf '\n[lib]\ncrate-type = ["cdylib", "rlib"]\n' >> Cargo.toml
93-
94-
CC=clang wasm-pack build
95-
CC=clang wasm-pack test --node
96-
97-
rm Cargo.toml
98-
mv orig-Cargo.toml Cargo.toml
99-
fi
100-
10186
# Address Sanitizer
10287
if [ "$DO_ASAN" = true ]; then
10388
clang --version

contrib/test.sh

+13
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ REPO_DIR=$(git rev-parse --show-toplevel)
66

77
DEPS="recent minimal"
88

9+
# Webassembly stuff
10+
if [ "$DO_WASM" = true ]; then
11+
clang --version
12+
CARGO_TARGET_DIR=wasm cargo install --force wasm-pack
13+
14+
printf '\n[lib]\ncrate-type = ["cdylib", "rlib"]\n' >> Cargo.toml
15+
16+
CC=clang wasm-pack build
17+
CC=clang wasm-pack test --node
18+
19+
exit 0
20+
fi
21+
922
for dep in $DEPS
1023
do
1124
cp "Cargo-$dep.lock" Cargo.lock

0 commit comments

Comments
 (0)