ci(workflow): Enhance desktop build process and add Linux variants#238
ci(workflow): Enhance desktop build process and add Linux variants#238rainxchzed merged 2 commits intomainfrom
Conversation
This commit improves the `build-desktop-platforms` GitHub Actions workflow by centralizing configurations, enabling Gradle caching features, and expanding Linux build compatibility.
- **feat(ci):** Introduced a build matrix for the Linux job to produce two `.deb` package variants:
- A `modern` version built on `ubuntu-latest` (24.04) for newer distributions.
- A `debian12-compat` version built on `ubuntu-22.04` for broader compatibility with older systems like Debian 12.
- **refactor(ci):** Centralized common settings like `JAVA_VERSION` and `JAVA_DISTRIBUTION` into a global `env` block for easier maintenance.
- **perf(ci):** Enabled Gradle's configuration cache (`-Dorg.gradle.configuration-cache=true`) and secure remote build cache (`cache-encryption-key`) to accelerate build times. Removed redundant `--no-daemon` and `--parallel` flags from Gradle commands as they are now managed via `GRADLE_OPTS`.
|
Caution Review failedThe pull request is closed. WalkthroughThis pull request centralizes Java and Gradle configuration in a GitHub Actions workflow by introducing global environment variables, adding retry mechanisms to build steps, and implementing a matrix strategy for Linux builds with multiple OS variants (ubuntu-latest and ubuntu-22.04). The workflow now drives platform-specific JDK setup through environment variables instead of hard-coded values. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This commit improves the
build-desktop-platformsGitHub Actions workflow by centralizing configurations, enabling Gradle caching features, and expanding Linux build compatibility..debpackage variants:modernversion built onubuntu-latest(24.04) for newer distributions.debian12-compatversion built onubuntu-22.04for broader compatibility with older systems like Debian 12.JAVA_VERSIONandJAVA_DISTRIBUTIONinto a globalenvblock for easier maintenance.-Dorg.gradle.configuration-cache=true) and secure remote build cache (cache-encryption-key) to accelerate build times. Removed redundant--no-daemonand--parallelflags from Gradle commands as they are now managed viaGRADLE_OPTS.Summary by CodeRabbit