2021-09-02 13:05:11 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -o errexit -o nounset -o pipefail
|
|
|
|
|
|
|
|
# set current working directory to script directory to run script from everywhere
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
2021-09-02 18:58:44 +03:00
|
|
|
# build test.wasm
|
|
|
|
marine build --release --bin test
|
2021-09-02 13:05:11 +03:00
|
|
|
|
|
|
|
# copy .wasm to artifacts
|
|
|
|
rm -f artifacts/*
|
|
|
|
mkdir -p artifacts
|
|
|
|
cp target/wasm32-wasi/release/test.wasm artifacts/
|
|
|
|
|
|
|
|
# download SQLite 3 to use in tests
|
2021-09-03 18:07:01 +03:00
|
|
|
curl -L https://github.com/fluencelabs/sqlite/releases/download/v0.15.0_w/sqlite3.wasm -o artifacts/sqlite3.wasm
|