examples/multi-service/scripts/build.sh

24 lines
595 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -o errexit -o nounset -o pipefail
2021-03-01 23:03:57 +00:00
cd curl_adapter
marine build --release
2021-03-01 23:03:57 +00:00
cd ../hex_converter
marine build --release
2021-03-01 23:03:57 +00:00
cd ../block_getter
marine build --release
2021-03-01 23:03:57 +00:00
cd ../extract_miner_address
marine build --release
2021-03-01 23:03:57 +00:00
cd ..
mkdir -p artifacts
2021-04-30 00:44:07 +00:00
rm -f artifacts/*.wasm
2021-03-01 23:03:57 +00:00
cp curl_adapter/target/wasm32-wasi/release/curl_adapter.wasm artifacts/
cp hex_converter/target/wasm32-wasi/release/hex_converter.wasm artifacts/
cp block_getter/target/wasm32-wasi/release/block_getter.wasm artifacts/
cp extract_miner_address/target/wasm32-wasi/release/extract_miner_address.wasm artifacts/