bazzar/scripts/build-adapters
2022-12-08 16:22:20 +01:00

13 lines
398 B
Bash
Executable File

#!/usr/bin/env zsh
target=wasm32-wasi
#target=wasm32-unknown-unknown
mkdir -p adapters
for d in $(ls crates | grep payment_adapter_); do
# echo $d
echo "cargo build --target ${target} -p ${d} --manifest-path ./crates/${d}/Cargo.toml"
cargo build --target-dir ./target --target ${target} -p ${d} --manifest-path ./crates/$d/Cargo.toml
cp ./target/${target}/debug/${d}.wasm ./adapters/
done