21 lines
410 B
21 lines
410 B
#!/usr/bin/env bash
|
|
|
|
DIR="$(realpath "$(dirname -- "$0")")"
|
|
|
|
# set env variables which are requested for rust
|
|
export RUSTUP_HOME="$DIR/.rustup"
|
|
export CARGO_HOME="$DIR/.cargo"
|
|
|
|
source "$DIR/.cargo/env"
|
|
|
|
echo "Running tests..."
|
|
cargo test
|
|
echo "Finished tests"
|
|
|
|
echo
|
|
echo
|
|
echo
|
|
|
|
echo "Building binary..."
|
|
cargo build --release
|
|
echo "Finished building binary. It is available at $DIR/target/release/pmuw-project"
|