2021-05-10 15:32:48 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -o errexit -o nounset -o pipefail
|
2021-02-25 21:48:56 +00:00
|
|
|
|
|
|
|
# This script builds all subprojects and puts all created Wasm modules in one dir
|
2021-03-17 21:02:36 +00:00
|
|
|
(
|
|
|
|
cd local_storage
|
2021-06-13 19:12:09 +00:00
|
|
|
cargo update --aggressive
|
|
|
|
marine build --release
|
2021-03-17 21:02:36 +00:00
|
|
|
)
|
|
|
|
(
|
|
|
|
cd curl_adapter
|
2021-06-13 19:12:09 +00:00
|
|
|
cargo update --aggressive
|
|
|
|
marine build --release
|
2021-03-17 21:02:36 +00:00
|
|
|
)
|
|
|
|
(
|
|
|
|
cd facade
|
2021-06-13 19:12:09 +00:00
|
|
|
cargo update --aggressive
|
|
|
|
marine build --release
|
2021-03-17 21:02:36 +00:00
|
|
|
)
|
2021-02-25 21:48:56 +00:00
|
|
|
|
2021-06-13 19:12:09 +00:00
|
|
|
mkdir -p sites
|
2021-03-17 21:02:36 +00:00
|
|
|
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/
|