27 lines
750 B
Bash
27 lines
750 B
Bash
#!/bin/sh
|
|
|
|
# Building
|
|
|
|
cargo_targets="json-api"
|
|
|
|
mkdir -p bin/
|
|
# Statically built binaries make this part really easy
|
|
for target in $cargo_targets;do
|
|
echo ================================================
|
|
echo = =
|
|
echo = =
|
|
echo = =
|
|
echo Building $target
|
|
echo = =
|
|
echo = =
|
|
echo = =
|
|
echo ================================================
|
|
pushd $target
|
|
cargo build --release
|
|
cp target/release/$target ../bin/
|
|
popd
|
|
done
|
|
|
|
|
|
echo Done building
|