2021-05-10 18:32:48 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -o errexit -o nounset -o pipefail
|
2021-02-25 15:48:56 -06:00
|
|
|
|
|
|
|
# This script builds all subprojects and puts all created Wasm modules in one dir
|
|
|
|
cd effector
|
2021-06-13 14:36:04 -05:00
|
|
|
cargo update --aggressive
|
|
|
|
marine build --release
|
|
|
|
|
2021-02-25 15:48:56 -06:00
|
|
|
cd ../pure
|
2021-06-13 14:36:04 -05:00
|
|
|
cargo update --aggressive
|
|
|
|
marine build --release
|
2021-02-25 15:48:56 -06:00
|
|
|
|
|
|
|
cd ..
|
2021-06-13 14:36:04 -05:00
|
|
|
mkdir -p artifacts
|
|
|
|
rm -f artifacts/*.wasm
|
|
|
|
cp effector/target/wasm32-wasi/release/ipfs_effector.wasm artifacts/
|
|
|
|
cp pure/target/wasm32-wasi/release/ipfs_pure.wasm artifacts/
|