-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (35 loc) · 1.01 KB
/
Copy pathMakefile
File metadata and controls
47 lines (35 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Variables
BINARY_NAME=rowan
MAIN_PATH=./cmd/rowan
OUTPUT_DIR=out
.PHONY: all build run test clean fmt vet deps docker-build compose-up compose-down
all: build
build:
@echo "Building $(BINARY_NAME)..."
go build -ldflags="-w -s" -o $(OUTPUT_DIR)/$(BINARY_NAME) $(MAIN_PATH)
run: build
@echo "Running $(BINARY_NAME)..."
@if [ -f .env ]; then echo "Loading .env"; else echo "No .env found — using defaults/exported env"; fi
@set -a; [ -f .env ] && . ./.env; set +a; \
ROWAN_PROFILE_FILE=$${ROWAN_PROFILE_FILE:-examples/agent.yaml} ./$(OUTPUT_DIR)/$(BINARY_NAME)
test:
@echo "Running tests..."
go test -race ./...
clean:
@echo "Cleaning..."
go clean
rm -rf $(OUTPUT_DIR)
fmt:
go fmt ./...
vet:
go vet ./...
deps:
go mod download
docker-build:
@echo "Building Docker image..."
docker build -t $(BINARY_NAME):latest .
compose-up:
@echo "Starting the local stack (Rowan + Ollama + Whisper + TTS)..."
docker compose -f deploy/docker-compose.yml up
compose-down:
docker compose -f deploy/docker-compose.yml down