Build and deployment improvements: Makefile: - Native library build targets with ASan support - Cross-platform compilation helpers - Performance benchmark targets - Security scan integration Docker: - secure-prod.Dockerfile: Hardened production image (non-root, minimal surface) - simple.Dockerfile: Lightweight development image Scripts: - build/: Go and native library build scripts, cross-platform builds - ci/: checks.sh, test.sh, verify-paths.sh for validation - benchmarks/: Local performance testing and regression tracking - dev/: Monitoring setup Dependencies: Update to latest stable with security patches Commands: - api-server/main.go: Server initialization updates - data_manager/data_sync.go: Data sync with visibility - errors/main.go: Error handling improvements - tui/: TUI improvements for group management
30 lines
929 B
Bash
Executable file
30 lines
929 B
Bash
Executable file
#!/bin/bash
|
|
# Orchestrates full build for Linux x86_64 only
|
|
|
|
set -euo pipefail
|
|
|
|
echo "=== Building for Linux x86_64 ==="
|
|
|
|
# Build native C++ libraries
|
|
scripts/build/build-native.sh
|
|
|
|
# Build Go backends for all build types
|
|
for build_type in pure cgo native; do
|
|
echo "=== Building ${build_type} binaries ==="
|
|
for binary in api-server worker data_manager user_manager tui; do
|
|
source_path="cmd/${binary}"
|
|
[ "$binary" = "worker" ] && source_path="cmd/worker/worker_server.go"
|
|
[ "$binary" = "api-server" ] && source_path="cmd/api-server/main.go"
|
|
[ "$binary" = "data_manager" ] && source_path="cmd/data_manager/main.go"
|
|
[ "$binary" = "user_manager" ] && source_path="cmd/user_manager/main.go"
|
|
[ "$binary" = "tui" ] && source_path="cmd/tui/main.go"
|
|
|
|
scripts/build/build-go.sh "$build_type" linux amd64 "$source_path"
|
|
done
|
|
done
|
|
|
|
# Build CLI binaries
|
|
scripts/build/build-cli.sh
|
|
|
|
echo "=== Build complete ==="
|
|
ls -lh dist/
|