Skip to content

[TEST] feat(ci): reorganize GitHub Actions workflows for SQLite support#144

Merged
hrygo merged 1 commit into
mainfrom
feat/9-github-actions-reorg
Feb 11, 2026
Merged

[TEST] feat(ci): reorganize GitHub Actions workflows for SQLite support#144
hrygo merged 1 commit into
mainfrom
feat/9-github-actions-reorg

Conversation

@yangxb2010000

@yangxb2010000 yangxb2010000 commented Feb 11, 2026

Copy link
Copy Markdown
Collaborator

🧪 Workflow Testing PR

注意: 此 PR 专门用于验证 GitHub Actions 工作流重组。测试通过后将合并。


变更概述

主要变更

  • 删除: build-multi-platform.yml (消除重复配置)
  • 重组: release-binaries.yml - 同时构建标准和 SQLite 二进制
  • 扩展: build-and-push-canary-image.yml - 同时构建标准和 SQLite 镜像
  • 扩展: build-and-push-stable-image.yml - 同时构建标准和 SQLite 镜像

标签策略

二进制文件:

  • 标准: divinesense-{version}-{os}-{arch}
  • SQLite: divinesense-{version}-{os}-{arch}-sqlite

Docker 镜像:

  • 标准: ghcr.io/hrygo/divinesense:{tag}
  • SQLite: ghcr.io/hrygo/divinesense:{tag}-sqlite

📋 验证清单

自动触发的工作流

  • pr-checks.yml - 分支命名验证
  • backend-tests.yml - 后端测试
  • frontend-tests.yml - 前端测试
  • codeql-analysis.yml - CodeQL 安全分析
  • dependency-review.yml - 依赖审查

待验证工作流

  • release-binaries.yml - 需要手动触发 workflow_dispatch
  • build-and-push-canary-image.yml - 合并到 main 后自动触发
  • build-and-push-stable-image.yml - 合并到 release 分支后触发

🎯 预期结果

release-binaries.yml 预期构建产物 (10 个二进制)

标准版本 (6 个):

  • divinesense-v0.0.0-test-linux-amd64
  • divinesense-v0.0.0-test-linux-arm64
  • divinesense-v0.0.0-test-windows-amd64.exe
  • divinesense-v0.0.0-test-windows-arm64.exe
  • divinesense-v0.0.0-test-darwin-amd64
  • divinesense-v0.0.0-test-darwin-arm64

SQLite 版本 (4 个):

  • divinesense-v0.0.0-test-linux-amd64-sqlite
  • divinesense-v0.0.0-test-linux-arm64-sqlite
  • divinesense-v0.0.0-test-darwin-amd64-sqlite
  • divinesense-v0.0.0-test-darwin-arm64-sqlite

Docker 镜像预期

Canary (自动触发):

  • ghcr.io/hrygo/divinesense:canary (linux/amd64 + linux/arm64)
  • ghcr.io/hrygo/divinesense:canary-sqlite (linux/amd64 + linux/arm64)

🔍 本地验证结果

配置审查通过:

  • YAML 语法: 10/10 files passed
  • 本地标准构建: CGO_ENABLED=0 ✅
  • 本地 SQLite 构建: CGO_ENABLED=1 + sqlite_vec ✅
  • Dockerfile 配置审查: ✅

⚠️ 已知限制:

  • Docker Hub 502 错误阻止本地镜像构建(网络问题,非配置问题)
  • CI 环境预期有更稳定的 Docker Hub 访问

📊 测试策略

第 1 阶段: PR 检查 (当前)

  • 观察 GitHub Actions 自动运行的所有 workflows
  • 验证所有 pre-commit hooks 通过

第 2 阶段: workflow_dispatch 测试

# 等待 PR 合并到 main 后执行
gh workflow run release-binaries.yml --raw-field tag_name=v0.0.1-test

第 3 阶段: Canary 镜像测试

  • 合并到 main 后自动触发
  • 验证 canarycanary-sqlite 镜像创建

第 4 阶段: 功能测试

  • 下载构建的二进制
  • 验证 SQLite vec0 扩展加载
  • 测试向量搜索功能

📝 相关 Issue

Resolves #9 - SQLite AI Support


⚠️ 重要说明

  1. 不要删除 tag v0.0.0-test: workflow_dispatch 测试需要此 tag
  2. 测试完成后可以删除: v0.0.0-test tag 和对应的 GitHub Release
  3. 标签已明确标识: PR 标题包含 [TEST] 前缀

Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

Major changes:
- Delete build-multi-platform.yml (eliminate duplication)
- Extend release-binaries.yml to build both standard and SQLite binaries
- Extend build-and-push-canary-image.yml to build both standard and SQLite images
- Extend build-and-push-stable-image.yml to build both standard and SQLite images

Tagging strategy:
- Binaries: {version}-{os}-{arch} vs {version}-{os}-{arch}-sqlite
- Images: {tag} vs {tag}-sqlite
- OCI labels: Clear distinction between variants

Build matrix:
- Standard binaries: 6 platforms (Linux/Windows/macOS × amd64/arm64)
- SQLite binaries: 4 platforms (Linux/macOS × amd64/arm64)
- Canary images: 2 platforms per variant (linux/amd64, linux/arm64)
- Stable images: 3 platforms per variant (linux/amd64, linux/arm/v7, linux/arm64)

Refs #9

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@yangxb2010000 yangxb2010000 force-pushed the feat/9-github-actions-reorg branch from 7689992 to ace634f Compare February 11, 2026 01:13
@hrygo hrygo closed this Feb 11, 2026
@hrygo hrygo reopened this Feb 11, 2026
@hrygo

hrygo commented Feb 11, 2026

Copy link
Copy Markdown
Owner

OK

@hrygo hrygo self-requested a review February 11, 2026 10:32
@hrygo hrygo merged commit f457834 into main Feb 11, 2026
22 of 23 checks passed
@hrygo hrygo deleted the feat/9-github-actions-reorg branch February 11, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[research] SQLite 能否追齐 PostgreSQL AI 功能支持?

2 participants