Pushes to feature branches built twice (push and pull request) and Check Codes
repeated the compile in a second workflow. Build now runs only on main, tags and
pull requests, cancels older runs of the same ref, folds checkstyle and
checkTranslations into the single Gradle invocation, caches the wrapper download
and skips apt when xvfb is installed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Requested by Ethyn
摘要
CI 排队太久,主要原因是同一个改动被重复构建,而不是单次构建慢:
push和pull_request各跑一次 Java CI,现在 push 只在 main 和 tag 上触发concurrency,同一个 PR 或分支的新运行会取消旧运行checkstyle、checkTranslations并进 Java CI 的同一次 Gradle 调用,删除check-codes.yml和已停用的check-codes-comment.yml~/.gradle/wrapper、.gradle/wrapper-neo),之前每次都重新下载 Gradleapt-get update验证
🤖 Generated with Claude Code