2023-02-12 18:00:25 +11:00
|
|
|
#!/bin/bash -e
|
|
|
|
set -Eeuo pipefail
|
|
|
|
|
2023-02-12 21:01:52 +11:00
|
|
|
export HOME=$(pwd)
|
2023-02-12 21:16:55 +11:00
|
|
|
export CARGO_HOME=$(pwd)/.cargo
|
2023-02-12 18:00:25 +11:00
|
|
|
cd blastmud-repo
|
2023-02-12 23:05:34 +11:00
|
|
|
|
|
|
|
BUILDSTAMP=$(date +%s)
|
|
|
|
|
|
|
|
echo Build timestamp for binary names: $BUILDSTAMP
|
2023-02-12 18:00:25 +11:00
|
|
|
echo Running tests
|
2023-02-12 18:13:56 +11:00
|
|
|
cargo test --target-dir ../target --profile release
|
2023-02-12 23:05:34 +11:00
|
|
|
|
2023-02-12 18:23:22 +11:00
|
|
|
echo Running main build
|
2023-02-12 18:13:56 +11:00
|
|
|
cargo build --target-dir ../target --profile release
|
2023-02-12 21:01:52 +11:00
|
|
|
|
2023-02-12 23:05:34 +11:00
|
|
|
echo Copying artifacts
|
|
|
|
echo $BUILDSTAMP >../binaries/buildstamp
|
|
|
|
cp ../target/release/blastmud_game ../binaries/
|
|
|
|
cp ../target/release/blastmud_listener ../binaries/
|