#!/bin/bash -e set -Eeuo pipefail export HOME=$(pwd) export CARGO_HOME=$(pwd)/.cargo cd blastmud-repo BUILDSTAMP=$(date +%s) echo Build timestamp for binary names: $BUILDSTAMP echo Running tests cargo test --target-dir ../target --profile release echo Running main build cargo build --target-dir ../target --profile release echo Copying artifacts echo $BUILDSTAMP >../binaries/buildstamp cp ../target/release/blastmud_game ../binaries/ cp ../target/release/blastmud_listener ../binaries/