mirror of
https://github.com/fluencelabs/trust-graph
synced 2024-12-04 15:20:19 +00:00
fd145c5fe1
Add echo
22 lines
629 B
Bash
Executable File
22 lines
629 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -o errexit -o nounset -o pipefail
|
|
set -x
|
|
|
|
# set current working directory to script directory to run script from everywhere
|
|
cd "$(dirname "$0")"
|
|
|
|
# build trust-graph.wasm
|
|
marine build --release
|
|
|
|
# copy .wasm to artifacts
|
|
rm -f artifacts/*
|
|
mkdir -p artifacts
|
|
cp ../target/wasm32-wasi/release/trust-graph.wasm artifacts/
|
|
|
|
# download SQLite 3 to use in tests
|
|
curl -sS -L https://github.com/fluencelabs/sqlite/releases/download/sqlite-wasm-v0.18.2/sqlite3.wasm -o artifacts/sqlite3.wasm
|
|
|
|
# generate Aqua bindings
|
|
marine aqua artifacts/trust-graph.wasm -s TrustGraph -i trust-graph > ../aqua/trust-graph.aqua
|