mirror of
https://github.com/Noratrieb/minmax.git
synced 2026-01-14 15:25:08 +01:00
21 lines
574 B
Bash
Executable file
21 lines
574 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if ! which rustc > /dev/null;
|
|
then
|
|
echo "ERROR: Rust must be installed: https://www.rust-lang.org/tools/install"
|
|
exit 1
|
|
fi
|
|
|
|
echo "${BASH_SOURCE[0]}"
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
echo "Building Rust library..."
|
|
cargo build --release "--manifest-path=$SCRIPT_DIR/Cargo.toml"
|
|
|
|
export LD_LIBRARY_PATH="$SCRIPT_DIR/target/release"
|
|
echo "Setting LD_LIBRARY_PATH to $LD_LIBRARY_PATH"
|
|
|
|
echo "Running Java tests. If this fails, there's something wrong :/"
|
|
cd "$SCRIPT_DIR/minmax-java"
|
|
./gradlew build
|