summaryrefslogtreecommitdiff
path: root/examples/rust/build.sh
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-09-11 22:48:12 +0200
committerHenry Gressmann <mail@henrygressmann.de>2024-09-11 22:48:12 +0200
commitc5f45ff56f7538944d92d5d318a01d10da04535c (patch)
tree589c7c3af38c46441c798ce307c96acca637c314 /examples/rust/build.sh
parent0ed6acf459ff941f3b20b3e7462e4ba1cf7fdbe5 (diff)
ci: improve no_std testing, add linux arm64
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'examples/rust/build.sh')
-rwxr-xr-xexamples/rust/build.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/rust/build.sh b/examples/rust/build.sh
index ceb1de6..d1e6285 100755
--- a/examples/rust/build.sh
+++ b/examples/rust/build.sh
@@ -12,6 +12,9 @@ wasmopt_features="--enable-reference-types --enable-bulk-memory --enable-mutable
# ensure out dir exists
mkdir -p "$dest_dir"
+# build no_std
+cargo build --target wasm32-unknown-unknown --package rust-wasm-examples --profile=wasm --bin tinywasm_no_std --no-default-features
+
for bin in "${bins[@]}"; do
RUSTFLAGS="-C target-feature=$rust_features -C panic=abort" cargo build --target wasm32-unknown-unknown --package rust-wasm-examples --profile=wasm --bin "$bin"