-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (38 loc) · 1.18 KB
/
Makefile
File metadata and controls
48 lines (38 loc) · 1.18 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
48
.PHONY: build test fmt lint smoke run-example clean check
# Default example for run-example target
EX ?= hello.ags
## Build the entire workspace
build:
cargo build --workspace
## Run all tests
test:
cargo test --workspace
## Format all code
fmt:
cargo fmt --all
## Check formatting without modifying files
fmt-check:
cargo fmt --check --all
## Run clippy lints
lint:
cargo clippy --workspace
## Run a specific example (usage: make run-example EX=hello.ags)
run-example:
cargo run -p agentus-cli -- exec examples/$(EX)
## Fast verification: build + test + run 2 examples
smoke: build test
@echo "--- Running hello.ags ---"
@cargo run -p agentus-cli -- exec examples/hello.ags
@echo "--- Running agent_basic.ags ---"
@cargo run -p agentus-cli -- exec examples/agent_basic.ags
@echo ""
@echo "=== Smoke test PASSED ==="
## Full check: fmt-check + lint + test + smoke examples
check: fmt-check lint test
@cargo run -p agentus-cli -- exec examples/hello.ags > /dev/null
@cargo run -p agentus-cli -- exec examples/agent_basic.ags > /dev/null
@cargo run -p agentus-cli -- exec examples/tools.ags > /dev/null
@echo "=== Full check PASSED ==="
## Clean build artifacts
clean:
cargo clean