21 lines
438 B
Bash
Executable File
21 lines
438 B
Bash
Executable File
#!/bin/bash -e
|
|
set -Eeuo pipefail
|
|
|
|
export HOME=$(pwd)
|
|
export CARGO_HOME=$(pwd)/.cargo
|
|
echo Pre-build layout
|
|
ls -laR .
|
|
|
|
cd blastmud-repo
|
|
echo Running tests
|
|
cargo test --target-dir ../target --profile release
|
|
echo Running main build
|
|
cargo build --target-dir ../target --profile release
|
|
echo Copying artifacts
|
|
cp ../target/release/blastmud_game ../output/
|
|
cp ../target/release/blastmud_listener ../output/
|
|
|
|
echo Final layout
|
|
cd ..
|
|
ls -laR .
|