feat: restore CI/release, prompt contracts, faster install (0.9.33)
Bring back Gitea CI + auto-publish; share release helpers; strengthen multi-turn tool/job prompts with a unit contract; ccache/make help and --release bootstrap. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -10,6 +10,16 @@ UNAME_S := $(shell uname -s 2>/dev/null)
|
||||
UNAME_O := $(shell uname -o 2>/dev/null)
|
||||
comma := ,
|
||||
|
||||
# Optional ccache: USE_CCACHE=1 forces it; USE_CCACHE=0 disables; else auto.
|
||||
USE_CCACHE ?= auto
|
||||
ifeq ($(USE_CCACHE),1)
|
||||
CC := $(shell command -v ccache >/dev/null && echo "ccache $(CC)" || echo "$(CC)")
|
||||
else ifeq ($(USE_CCACHE),auto)
|
||||
ifneq ($(findstring ccache,$(CC)),ccache)
|
||||
CC := $(shell command -v ccache >/dev/null && echo "ccache $(CC)" || echo "$(CC)")
|
||||
endif
|
||||
endif
|
||||
|
||||
# Android (Termux): pthreads live in libc.
|
||||
PTHREAD_LIBS := -lpthread
|
||||
ifeq ($(UNAME_O),Android)
|
||||
@@ -175,6 +185,7 @@ TESTS = \
|
||||
tests/test_mcp \
|
||||
tests/test_subagent \
|
||||
tests/test_runtime \
|
||||
tests/test_prompt_contract \
|
||||
tests/test_realm \
|
||||
tests/test_discover \
|
||||
tests/test_peer_auth \
|
||||
@@ -195,10 +206,21 @@ TEST_LIBS = -L$(SD_DIR) -lsashidown $(CURL_LIBS) $(RPATH_LIBS) $(TEST_SYS_LIBS)
|
||||
TEST_OS_SRC = src/os_compat.c src/os_win.c src/util.c
|
||||
|
||||
.PHONY: all clean check demo sashidown-lib cmake-gcc cmake-clang asan install \
|
||||
uninstall install-service
|
||||
uninstall install-service help
|
||||
|
||||
all: sashidown-lib cst-agent $(CST_CORE_LIB)
|
||||
|
||||
help:
|
||||
@echo "CST-Agent build targets (prefer: make -j\$$(nproc))"
|
||||
@echo " all / cst-agent incremental build (ccache auto if installed)"
|
||||
@echo " check build + run unit tests"
|
||||
@echo " asan AddressSanitizer rebuild + check"
|
||||
@echo " install PREFIX=$(PREFIX) (default /usr/local)"
|
||||
@echo " install-service systemd --user parliament unit"
|
||||
@echo "Env: USE_CCACHE=0|1|auto STATIC=1 CST_WEBUI=0 CC=tcc"
|
||||
@echo "Release: scripts/package_linux.sh ARCH | scripts/ci_windows_cross.sh"
|
||||
@echo "Fast install: scripts/bootstrap_linux.sh --release"
|
||||
|
||||
$(CST_CORE_LIB): $(CORE_OBJ)
|
||||
rm -f $@
|
||||
$(AR) rcs $@ $(CORE_OBJ)
|
||||
|
||||
Reference in New Issue
Block a user