Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:construction_worker: Improve cd

Danield961b51432c2
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
index 11e58b8b2e..2b060eb676 100644
--- a/.github/workflows/cd.yml
+++ b/.github/workflows/cd.yml
@@ -283,10 +283,13 @@ jobs:
echo "Installed NDK r28b at $NDK_DIR"
- name: Set up gomobile
- # 锁定到 kernel/go.mod 中 x/mobile 模块的同一版本,避免工具与库版本漂移
+ # 锁定到 kernel/go.mod 中 x/mobile 模块的同一版本,避免工具与库版本漂移。
+ # GOPATH 被显式指向 workspace 下,go install 的产物在 $GOPATH/bin,
+ # 该目录不在默认 PATH 上,需用全路径调用并写入 $GITHUB_PATH 供后续步骤使用。
run: |
go install golang.org/x/mobile/cmd/gomobile@2553ed8ce294
- gomobile init
+ echo "$GOPATH/bin" >> $GITHUB_PATH
+ "$GOPATH/bin/gomobile" init
env:
GOPATH: ${{ github.workspace }}/go