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.
 
 

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"