26382a7ac6
CI / Test (macos-latest) (push) Waiting to run
CI / Test (windows-latest) (push) Waiting to run
CI / Build (no embeddings / no ORT) (push) Waiting to run
CI / Format (push) Waiting to run
CI / Cookbook (Node) (push) Waiting to run
CI / Pi Extension (Node) (push) Waiting to run
CI / Rust SDK (lean-ctx-client) (push) Waiting to run
CI / Embed SDK (lean-ctx-sdk) (push) Waiting to run
CI / Python SDK (leanctx) (push) Waiting to run
CI / Hermes Plugin (Python) (push) Waiting to run
CI / SDK Conformance Matrix (push) Waiting to run
CI / Coverage (push) Waiting to run
CI / cargo-deny (push) Waiting to run
CI / Adversarial Safety (push) Waiting to run
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
JetBrains Plugin / Actionlint (push) Waiting to run
CI / Benchmarks (push) Waiting to run
CI / Output-Quality Gate (eval A/B) (push) Waiting to run
CI / Documentation (push) Waiting to run
CI / CI Green (push) Blocked by required conditions
CodeQL / Analyze (actions) (push) Waiting to run
CodeQL / Analyze (rust) (push) Waiting to run
JetBrains Plugin / Validation (push) Waiting to run
JetBrains Plugin / Build (push) Waiting to run
JetBrains Plugin / Test (push) Blocked by required conditions
Security Check / Security Scan (push) Waiting to run
CI / Test (ubuntu-latest) (push) Has started running
CI / Clippy (push) Has started running
41 lines
1.8 KiB
Makefile
41 lines
1.8 KiB
Makefile
.PHONY: setup-hooks install dev test preflight preflight-fast help
|
|
|
|
# ── Setup ─────────────────────────────────────────────────
|
|
|
|
setup-hooks: ## Configure git to use .githooks/ for hooks
|
|
git config core.hooksPath .githooks
|
|
@echo "Git hooks configured: .githooks/"
|
|
|
|
# ── Build & Install ──────────────────────────────────────
|
|
|
|
install: ## Build release + install to ~/.local/bin
|
|
cd rust && cargo install --path . --force --locked --root "$$HOME/.local"
|
|
@echo "Installed: $$(lean-ctx --version)"
|
|
|
|
dev: ## Quick debug build + copy to ~/.local/bin
|
|
cd rust && cargo build
|
|
@mkdir -p "$$HOME/.local/bin"
|
|
cp rust/target/debug/lean-ctx "$$HOME/.local/bin/lean-ctx"
|
|
@echo "Dev installed: $$(lean-ctx --version)"
|
|
|
|
test: ## Run all Rust tests + clippy
|
|
cd rust && cargo test && cargo clippy
|
|
|
|
# ── CI-parity gate ───────────────────────────────────────
|
|
# Mirrors .github/workflows/ci.yml so green-here => green-in-CI for the
|
|
# deterministic jobs (fmt/clippy/doc/gen_docs/cross-platform compile).
|
|
|
|
preflight: ## Full local CI-parity gate (fmt, clippy, doc, gen_docs, win-check, lib tests)
|
|
scripts/preflight.sh full
|
|
|
|
preflight-fast: ## Static CI-parity gate (no full test run) — what pre-push runs
|
|
scripts/preflight.sh fast
|
|
|
|
# ── Help ──────────────────────────────────────────────────
|
|
|
|
help: ## Show this help
|
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
|
|
awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-18s\033[0m %s\n", $$1, $$2}'
|
|
|
|
.DEFAULT_GOAL := help
|