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

2 years ago
  1. #!/usr/bin/env bash
  2. DIR="$(realpath "$(dirname -- "$0")")"
  3. # set env variables which are requested for rust
  4. export RUSTUP_HOME="$DIR/.rustup"
  5. export CARGO_HOME="$DIR/.cargo"
  6. source "$DIR/.cargo/env"
  7. echo "Running tests..."
  8. cargo test
  9. echo "Finished tests"
  10. echo
  11. echo
  12. echo
  13. echo "Building binary..."
  14. cargo build --release
  15. echo "Finished building binary. It is available at $DIR/target/release/pmuw-project"