blastmud/.ci/build

20 lines
406 B
Bash
Executable File

#!/bin/bash -e
set -Eeuo pipefail
export HOME=$(pwd)
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 .