mirror of
https://github.com/fluencelabs/examples
synced 2024-12-12 14:45:33 +00:00
6381411ed9
* init reorg * updated readme * fix CI * remove outdated ipfs-node example * add Readme * update readme, add config file Co-authored-by: folex <0xdxdy@gmail.com>
27 lines
625 B
Bash
Executable File
27 lines
625 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -o errexit -o nounset -o pipefail
|
|
|
|
# This script builds all subprojects and puts all created Wasm modules in one dir
|
|
(
|
|
cd local_storage
|
|
cargo update --aggressive
|
|
marine build --release
|
|
)
|
|
(
|
|
cd curl_adapter
|
|
cargo update --aggressive
|
|
marine build --release
|
|
)
|
|
(
|
|
cd facade
|
|
cargo update --aggressive
|
|
marine build --release
|
|
)
|
|
|
|
mkdir -p sites
|
|
mkdir -p artifacts
|
|
rm -f artifacts/*.wasm
|
|
cp local_storage/target/wasm32-wasi/release/local_storage.wasm artifacts/
|
|
cp curl_adapter/target/wasm32-wasi/release/curl_adapter.wasm artifacts/
|
|
cp facade/target/wasm32-wasi/release/facade.wasm artifacts/
|