marine/fluence-faas/tests/wasm_tests/build.sh
2021-05-10 12:51:22 +03:00

31 lines
959 B
Bash
Executable File

#!/bin/sh
# This script builds all tests
(
cd arguments_passing || exit;
cargo update --aggressive;
marine build --release;
rm artifacts/* || true;
)
(
cd arrays_passing || exit;
cargo update --aggressive;
marine build --release;
rm artifacts/* || true;
)
(
cd records_passing || exit;
cargo update --aggressive;
marine build --release;
rm artifacts/* || true;
)
cp ../../../target/wasm32-wasi/release/arguments_passing_effector.wasm arguments_passing/artifacts/
cp ../../../target/wasm32-wasi/release/arguments_passing_pure.wasm arguments_passing/artifacts/
cp ../../../target/wasm32-wasi/release/arrays_passing_effector.wasm arrays_passing/artifacts/
cp ../../../target/wasm32-wasi/release/arrays_passing_pure.wasm arrays_passing/artifacts/
cp ../../../target/wasm32-wasi/release/records_passing_effector.wasm records_passing/artifacts/
cp ../../../target/wasm32-wasi/release/records_passing_pure.wasm records_passing/artifacts/