Skip to content

[ci] Linux 不参与 PR 质量门禁 — cfg(unix, not(macos)) 路径无 PR-time 验证 #300

@appergb

Description

@appergb

背景

ci.yml 仅跑 macos-latest + windows-latest。Linux 代码路径(rdev hotkey adapter / linux keyring / XDG 路径 / wl-paste / xclip / xsel selection)只在 release-tauri.yml tag 触发的 release 构建时才被编译验证。

风险

#[cfg(all(unix, not(target_os = "macos")))] 分支若写错,PR merge 之前不会发现,要等真发版才暴露。

建议

ci.yml matrix 加 ubuntu-latest job:

  • 跑 cargo check
  • 跑 npm run build
  • 跳过 Tauri bundle(避免依赖 GTK / webkit2gtk 系统库慢装)

来源

docs/audit-2026-05-06.md §1.4 中风险 #6

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions