Skip to content

ci: 梳理 Actions —— 修复矩阵遗漏、统一版本与命名 - #25

Merged
Windsander merged 1 commit into
mainfrom
ci/tidy-workflows
Aug 29, 2026
Merged

Windsander merged 1 commit into
mainfrom
ci/tidy-workflows

Conversation

@Windsander

Copy link
Copy Markdown
Owner

概述

对 9 个 Actions 工作流做一致性梳理,含一处真实修复,无行为变更。

P0 修复

  • test-native / test-cross:补齐 windows-latest + android、macos-latest + android 两组无效构建腿的 exclude(与 auto-publish 对齐)。此前每次 push/PR 都会在 Windows 和 macOS runner 上白跑两个 Android 构建组合。

P1 一致性

  • action 版本统一:upload-artifact@v7、download-artifact@v8、action-gh-release@v3(此前 v2~v8 混用)
  • 命名统一:全部改为分组前缀 —— CI · / Security · / Deps · / Release · / Community ·;同步修正 auto-deploy 对上游的 workflow_run 引用名(漏改会导致发布链断裂)
  • test-cross 补 workflow_dispatch(与 test-native 对齐)
  • auto-publish / auto-deploy 增加 concurrency 串行保护
  • weekly-report 顶层权限降为 discussions: read,write 仅保留在 publish job

兼容性说明

  • native-gate / cross-gate 聚合检查名未变,分支保护规则不受影响
  • CodeQL 检查名(Analyze cpp/python/actions)未变
  • YAML 全部通过语法校验

P0 修复:
- test-native / test-cross: 补齐 windows-latest+android 与
  macos-latest+android 两组无效构建腿的 exclude(与 auto-publish 对齐,
  消除每次 CI 白跑的两个 runner 腿)

P1 一致性:
- action 版本统一: upload-artifact@v7、download-artifact@v8、
  action-gh-release@v3(此前 v2~v8 混用)
- 工作流命名统一分组前缀: CI · / Security · / Deps · /
  Release · / Community ·;同步修正 auto-deploy 的
  workflow_run 引用名
- test-cross 补 workflow_dispatch(与 test-native 对齐)
- auto-publish / auto-deploy 增加 concurrency 串行保护
- weekly-report: 顶层权限降为 discussions: read,
  write 仅保留在 publish job
@Windsander
Windsander merged commit 2eb1beb into main Aug 29, 2026
46 checks passed
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.

1 participant