Commit Graph

5 Commits

Author SHA1 Message Date
ywkj 39ef2f59b6 fix: go.mod 降级到 1.22,CI 加 GOTOOLCHAIN=local
Build and Release auth-rt / release (push) Successful in 1m42s Details
避免 CI 里 Go 1.22 尝试下载 1.25.7 toolchain。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 21:24:22 +08:00
ywkj 48a03f3376 fix: CI 用 node 替代 jq 解析 JSON
Build and Release auth-rt / release (push) Failing after 51s Details
node:20-bookworm 没有 jq,改用 node -e 解析 API 响应。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 21:21:42 +08:00
ywkj 9fd284e556 fix: CI 去掉 golang container,在 node:20-bookworm 里直接装 Go
Build and Release auth-rt / release (push) Failing after 2m25s Details
避免拉 golang 镜像的网络延迟,直接下载 Go tarball 编译。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 21:17:45 +08:00
ywkj f03e09dca2 fix: CI 改用 Forgejo API 上传 release(不依赖 upload-artifact)
Build and Release auth-rt / release (push) Has been cancelled Details
Forgejo 不支持 actions/upload-artifact@v4,改为单 job 交叉编译
+ curl 调用 Forgejo release API 上传二进制。
同时维护 latest release 供 install.sh --download 使用。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 21:03:32 +08:00
ywkj dabcddb05e feat: Go 重写 auth-rt CLI,真正的零依赖二进制
Build and Release auth-rt / build (amd64, darwin) (push) Failing after 2m53s Details
Build and Release auth-rt / build (amd64, linux) (push) Failing after 1m16s Details
Build and Release auth-rt / build (arm64, darwin) (push) Failing after 1m9s Details
Build and Release auth-rt / build (arm64, linux) (push) Failing after 1m15s Details
Build and Release auth-rt / release (push) Has been skipped Details
- cli/ 目录:完整的 Go 实现(env/cache/auth/http/retry)
- install.sh:支持本地编译和 --download 从 release 下载
- .forgejo/workflows/release.yml:CI 交叉编译 darwin/linux × amd64/arm64
- auth-cli.ts:改为调用 auth-rt 二进制(不再需要 bun/node)
- 分发策略:skill install.sh 优先从 release 下载,失败则 clone + go build

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 20:51:45 +08:00