Skip to content

Commit ee4b27f

Browse files
miaobyteclaude
andcommitted
release(macos): 修正 CLI 构建顺序(libkvlanglayout 先入 bin)
runtime-rs 的 build.rs 在 ../bin 搜索 libkvlang_runtime / libkvlanglayout, 原先三个 cargo build 全跑完才 cp → 构建 kvlang 时报 `ld: library 'kvlanglayout' not found`。改为 layout 构建后立即 cp。 Co-Authored-By: Claude Code <noreply@anthropic.com>
1 parent 894d82a commit ee4b27f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ jobs:
7474
cmake -S runtime -B build/runtime -DCMAKE_BUILD_TYPE=Release -DKVSPACE_LIB_DIR="$KVSPACE_LIB_DIR"
7575
cmake --build build/runtime --target kvlang_runtime -j
7676
cargo build --release --manifest-path layout/Cargo.toml
77-
cargo build --release --manifest-path runtime-rs/Cargo.toml
78-
# kvspace CLI 是本步 clone 到 /tmp/kvspace 的 cli/(独立 Cargo 项目)
79-
cargo build --release --manifest-path /tmp/kvspace/cli/Cargo.toml
77+
# runtime-rs 的 build.rs 在 ../bin 找 libkvlang_runtime/libkvlanglayout,必须先就位
8078
mkdir -p bin
8179
cp layout/target/release/libkvlanglayout.dylib bin/
80+
cargo build --release --manifest-path runtime-rs/Cargo.toml
81+
cargo build --release --manifest-path /tmp/kvspace/cli/Cargo.toml
8282
cp layout/target/release/kvlanglayout bin/
8383
cp runtime-rs/target/release/kvlang bin/
8484
- name: 后端装载冒烟(frontend 的 dlopen 真能加载后端)

0 commit comments

Comments
 (0)