You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
568 B
26 lines
568 B
2 years ago
|
#!/bin/bash
|
||
|
set -euo pipefail
|
||
|
|
||
|
version="$1"
|
||
|
repo="$2"
|
||
|
builddir="$3"
|
||
|
pkg="$4"
|
||
|
|
||
|
build () {
|
||
|
features="$1"
|
||
|
cargo clean
|
||
|
wasm-pack build --target web --release plume-front
|
||
|
cargo build --release --no-default-features --features="${features}" --package=plume-cli
|
||
|
cargo build --release --no-default-features --features="${features}"
|
||
|
./script/generate_artifact.sh
|
||
|
}
|
||
|
|
||
|
git clone $repo $builddir
|
||
|
cd $builddir
|
||
|
git checkout $version
|
||
|
mkdir -p $pkg
|
||
|
build postgres
|
||
|
mv plume.tar.gz /pkg/plume-postgres.tar.gz
|
||
|
build sqlite
|
||
|
mv plume.tar.gz /pkg/plume-sqlite.tar.gz
|