Update build and test scripts to handle all three crates (core, client, ui)
This commit is contained in:
@@ -4,8 +4,34 @@ set -e
|
||||
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
PROJECT_DIR=$(cd "$SCRIPT_DIR/.." && pwd)
|
||||
|
||||
echo "Building Hero Supervisor..."
|
||||
cd "$PROJECT_DIR"
|
||||
RUSTFLAGS="-A warnings" cargo build --release
|
||||
echo "========================================="
|
||||
echo "Building Hero Supervisor Workspace"
|
||||
echo "========================================="
|
||||
|
||||
echo "✅ Hero Supervisor built successfully"
|
||||
# Build core and client (workspace members)
|
||||
echo ""
|
||||
echo "📦 Building core and client..."
|
||||
cd "$PROJECT_DIR"
|
||||
RUSTFLAGS="-A warnings" cargo build --release --workspace
|
||||
|
||||
echo ""
|
||||
echo "✅ Core and client built successfully"
|
||||
|
||||
# Build UI (WASM target)
|
||||
echo ""
|
||||
echo "📦 Building UI (WASM)..."
|
||||
cd "$PROJECT_DIR/ui"
|
||||
|
||||
# Check if trunk is installed
|
||||
if ! command -v trunk &> /dev/null; then
|
||||
echo "⚠️ Warning: trunk not found. Skipping UI build."
|
||||
echo " Install trunk with: cargo install trunk"
|
||||
else
|
||||
trunk build --release
|
||||
echo "✅ UI built successfully"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "========================================="
|
||||
echo "✅ All builds completed successfully"
|
||||
echo "========================================="
|
||||
Reference in New Issue
Block a user