Repository navigation
Refactor build and upgrade to librime 1.18.0 - #2239
Merged
Merged
Conversation
/usr/bin/tar: C\:/Users/runneradmin/.gradle/caches/9.8.2/.../modules-2.lock:
Read error at byte 0, while reading 38 bytes: Device or resource busy
/usr/bin/tar: Exiting with failure status due to previous errors
##[warning]Failed to save: tar.exe failed with exit code 2
The setup-java Gradle cache save runs after the job, while the Gradle daemon
still holds lock files. Windows forbids reading them, so the cache is not
saved. Stop the daemon in a final step of the commit and PR build jobs.
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain in the native-build configuration and CI cleanup changes.
No open issues 🎉
What changed in this PR
This PR refactors Trime’s native build configuration to support the planned librime 1.18.0 upgrade and improves build output and CI cleanup.
Changes:
- Modernizes CMake configuration, centralizes reproducible-build flags, and updates dependency discovery.
- Captures OpenCC host-build output, displaying it only when the command fails.
- Stops Gradle daemons at the end of both CI workflows to avoid Windows cache-save conflicts.
| File | Description |
|---|---|
build-logic/convention/src/main/kotlin/OpenCCDataPlugin.kt |
Suppresses successful command output while preserving failure diagnostics. |
app/src/main/jni/librime_jni/CMakeLists.txt |
Updates source discovery, scopes linking, and adds keysym headers. |
app/src/main/jni/CMakeLists.txt |
Requires CMake 4.1 and centralizes reproducible-build options. |
app/src/main/jni/cmake/Rime.cmake |
Applies shared reproducibility settings to librime and plugins. |
app/src/main/jni/cmake/OpenccWorkarounds.cmake |
Updates header discovery to track added or removed headers. |
app/src/main/jni/cmake/FindLevelDb.cmake |
Corrects the discovery flag and exports the include path. |
app/src/main/jni/cmake/FindBoost.cmake |
Exports Boost version metadata and simplifies include-path collection. |
.github/workflows/pull-request-ci.yml |
Adds unconditional Gradle daemon cleanup. |
.github/workflows/commit-ci.yml |
Adds unconditional Gradle daemon cleanup. |
Review effort: Balanced
WhiredPlanck
approved these changes
Nov 25, 2026
WhiredPlanck
left a comment
Collaborator
There was a problem hiding this comment.
These changes are neat. Great!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request
Issue tracker
Fixes will automatically close the related issues
Fixes #
Fixes #
Feature
Describe features of this pull request
This patch is verified with daily usage.
Code of conduct
Code style
make style-lintBuild pass
make debugManually test
Code Review
Daily build
Login and download artifact at https://github.com/osfans/trime/actions
Additional Info