From 765ce0af66a1c64f8002c56e32825872285bf852 Mon Sep 17 00:00:00 2001 From: "peng.li24" <734991033@qq.com> Date: Tue, 25 Aug 2026 01:43:54 +0000 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20CI=20=E5=88=87=E5=88=B0=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=20shm=20=E5=90=8E=E7=AB=AF=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=20tutorial=20=E6=B5=8B=E8=AF=95=E8=BF=9E=20redis=20=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c29f743f..34f9810f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,7 @@ jobs: env: { GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" } run: ./ci/deps.sh - name: 构建 - run: make runtime layout + run: make shm - name: 测试 + env: { KVSPACE: "shm:///tmp/kvlang_ci" } run: python3 tutorial/test.py From 9847c40f31c294d8294fe05a9b014baece06ffe9 Mon Sep 17 00:00:00 2001 From: "peng.li24" <734991033@qq.com> Date: Tue, 25 Aug 2026 01:43:57 +0000 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20Makefile=20=E6=96=B0=E5=A2=9E=20ins?= =?UTF-8?q?tall=20=E7=9B=AE=E6=A0=87=EF=BC=8C=E4=BA=A7=E7=89=A9=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E6=80=A7=E8=A3=85=E5=88=B0=20/usr/lib=20/usr/bin=20/u?= =?UTF-8?q?sr/include/kvlang/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 32535e28..18c95429 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ # make shm 链 kvspace-c 后端(SHM,默认,= all 的后端组件) # make durable 链 kvspace_durable 后端(redis/fs/s3) # make test durable 后端全量 tutorial 回归 +# make install 一次性安装产物到最终态目录(.so→/usr/lib,可执行→/usr/bin,头→/usr/include/kvlang/) # make all 全部(shm 后端 + json) # make clean 清理 bin/ 与各构建目录 # 切换后端只需 make shm / make durable:runtime 经 cmake 重配、layout 经环境变量重建。 @@ -14,7 +15,7 @@ BIN := bin KVSPACE_LIB ?= kvspace-c -.PHONY: all runtime term layout json oldhero shm durable test clean +.PHONY: all runtime term layout json oldhero shm durable test install clean all: runtime term layout json @@ -36,8 +37,16 @@ term: layout: KVLANG_KVSPACE_LIB=$(KVSPACE_LIB) cargo build --release --manifest-path layout/Cargo.toml --example layout_file + KVLANG_KVSPACE_LIB=$(KVSPACE_LIB) cargo build --release --manifest-path layout/Cargo.toml cp layout/target/release/examples/layout_file $(BIN)/ +install: + install -d /usr/lib /usr/bin /usr/include/kvlang + install -m 755 $(BIN)/libkvlang_runtime.so /usr/lib/ + install -m 755 layout/target/release/libkvlang_layout.so /usr/lib/ + install -m 755 $(BIN)/kvlang $(BIN)/layout_file /usr/bin/ + install -m 644 runtime/include/kvlang_runtime.h runtime/include/kvlang_rwirext.h /usr/include/kvlang/ + json: ifeq ($(KVSPACE_LIB),kvspace_durable) cd runtime-rwirext_example/go/json && CGO_LDFLAGS="-L$(CURDIR)/../kvspace-durable/target/release -lkvspace_durable -Wl,--disable-new-dtags -Wl,-rpath,$(CURDIR)/../kvspace-durable/target/release" go build -o ../../../bin/json-rwirext ./cmd/ From 5ba61ac85b8583d53042b5e7a11169bb8fa8b0a3 Mon Sep 17 00:00:00 2001 From: "peng.li24" <734991033@qq.com> Date: Tue, 25 Aug 2026 01:44:01 +0000 Subject: [PATCH 3/3] =?UTF-8?q?docs:=20README=20=E7=A7=BB=E9=99=A4=20Go=20?= =?UTF-8?q?badge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- README.md | 1 - README_CN.md | 1 - 2 files changed, 2 deletions(-) diff --git a/README.md b/README.md index fd2cecb7..8deb2204 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # kvlang [![CI](https://github.com/array2d/kvlang/actions/workflows/ci.yml/badge.svg)](https://github.com/array2d/kvlang/actions/workflows/ci.yml) -[![Go Version](https://img.shields.io/badge/Go-1.24+-00ADD8?logo=go)](https://go.dev/) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![Tutorial Examples](https://img.shields.io/badge/tutorials-140%20examples-4c1)](tutorial/) diff --git a/README_CN.md b/README_CN.md index a630d1ca..56661404 100644 --- a/README_CN.md +++ b/README_CN.md @@ -1,7 +1,6 @@ # kvlang [![CI](https://github.com/array2d/kvlang/actions/workflows/ci.yml/badge.svg)](https://github.com/array2d/kvlang/actions/workflows/ci.yml) -[![Go Version](https://img.shields.io/badge/Go-1.24+-00ADD8?logo=go)](https://go.dev/) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![Tutorial Examples](https://img.shields.io/badge/tutorials-140%20examples-4c1)](tutorial/)