feat: 添加 Linux ARM64 Release 支持 (#418)

- 在 release.yml 和 tag-release.yml 中添加 Linux ARM64 构建
- 更新发布文件列表和下载说明文档

Closes #415

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
zy
2026-02-14 01:17:18 +08:00
committed by GitHub
parent 90a6b5cccd
commit 0476ba3e85
2 changed files with 18 additions and 1 deletions

View File

@@ -73,6 +73,10 @@ jobs:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o xiaohongshu-mcp-linux-amd64 .
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o xiaohongshu-login-linux-amd64 ./cmd/login
# Linux ARM64
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o xiaohongshu-mcp-linux-arm64 .
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o xiaohongshu-login-linux-arm64 ./cmd/login
- name: Package binaries
run: |
# 创建压缩包
@@ -88,6 +92,9 @@ jobs:
# Linux x64
tar czf xiaohongshu-mcp-linux-amd64.tar.gz xiaohongshu-mcp-linux-amd64 xiaohongshu-login-linux-amd64
# Linux ARM64
tar czf xiaohongshu-mcp-linux-arm64.tar.gz xiaohongshu-mcp-linux-arm64 xiaohongshu-login-linux-arm64
- name: Clean up old releases
run: |
# 获取所有自动构建的 releases (v开头的时间戳格式)
@@ -121,6 +128,7 @@ jobs:
- **macOS Intel**: `xiaohongshu-mcp-darwin-amd64.tar.gz`
- **Windows x64**: `xiaohongshu-mcp-windows-amd64.zip`
- **Linux x64**: `xiaohongshu-mcp-linux-amd64.tar.gz`
- **Linux ARM64**: `xiaohongshu-mcp-linux-arm64.tar.gz`
每个压缩包包含:
- `xiaohongshu-mcp-*`: MCP 服务主程序
@@ -156,3 +164,4 @@ jobs:
xiaohongshu-mcp-darwin-amd64.tar.gz
xiaohongshu-mcp-windows-amd64.zip
xiaohongshu-mcp-linux-amd64.tar.gz
xiaohongshu-mcp-linux-arm64.tar.gz

View File

@@ -65,6 +65,10 @@ jobs:
GOOS=linux GOARCH=amd64 go build -o xiaohongshu-mcp-linux-amd64 .
GOOS=linux GOARCH=amd64 go build -o xiaohongshu-login-linux-amd64 ./cmd/login
# Linux ARM64
GOOS=linux GOARCH=arm64 go build -o xiaohongshu-mcp-linux-arm64 .
GOOS=linux GOARCH=arm64 go build -o xiaohongshu-login-linux-arm64 ./cmd/login
- name: Generate changelog
id: changelog
run: |
@@ -111,12 +115,14 @@ jobs:
- **macOS Intel**: `xiaohongshu-mcp-darwin-amd64`
- **Windows x64**: `xiaohongshu-mcp-windows-amd64.exe`
- **Linux x64**: `xiaohongshu-mcp-linux-amd64`
- **Linux ARM64**: `xiaohongshu-mcp-linux-arm64`
**登录工具:**
- **macOS Apple Silicon**: `xiaohongshu-login-darwin-arm64`
- **macOS Intel**: `xiaohongshu-login-darwin-amd64`
- **Windows x64**: `xiaohongshu-login-windows-amd64.exe`
- **Linux x64**: `xiaohongshu-login-linux-amd64`
- **Linux ARM64**: `xiaohongshu-login-linux-arm64`
### 🔧 使用方法
@@ -147,7 +153,9 @@ jobs:
xiaohongshu-mcp-darwin-amd64
xiaohongshu-mcp-windows-amd64.exe
xiaohongshu-mcp-linux-amd64
xiaohongshu-mcp-linux-arm64
xiaohongshu-login-darwin-arm64
xiaohongshu-login-darwin-amd64
xiaohongshu-login-windows-amd64.exe
xiaohongshu-login-linux-amd64
xiaohongshu-login-linux-amd64
xiaohongshu-login-linux-arm64