examples/math/build.sh
2021-06-01 09:48:45 +03:00

11 lines
276 B
Bash

#!/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
cargo update
marine build --release
rm -f -r artifacts/*
mkdir --parents artifacts
cp target/wasm32-wasi/release/math.wasm artifacts/