Skip to content

Conversation

@rainxchzed
Copy link
Owner

@rainxchzed rainxchzed commented Jan 6, 2026

Summary by CodeRabbit

  • Chores
    • Updated desktop platform build workflow configuration across macOS, Linux, and Windows.
    • Adjusted macOS build matrix with updated OS versions while maintaining architecture support (x64 and arm64).
    • Streamlined Linux build process by simplifying dependency management and adopting automated JDK configuration.
    • Build infrastructure improvements enhance consistency and reliability across all desktop platforms.

✏️ Tip: You can customize this high-level summary in your review settings.

This adds `fakeroot` and `rpm` to the list of installed packages in the `build-desktop-platforms` GitHub Actions workflow. These are necessary for building RPM packages.
This commit refactors the `build-desktop-platforms.yml` GitHub Actions workflow.

Key changes include:
*   Replacing the manual installation of JDK 21 with the `actions/setup-java@v4` action for better caching and management.
*   Adding necessary Linux dependencies like `libasound2`, `libgtk-3-0`, and others directly in the `apt-get install` step.
*   Introducing a step to output logs from `createRuntimeImage` on packaging failure, aiding in debugging build issues.
*   Removing a redundant `shell: bash` declaration.
Explicitly sets the `shell` to `bash` for the Gradle packaging command in the `build-desktop-platforms.yml` workflow.
This ensures the full JDK, instead of just the JRE, is installed for the desktop build workflow, which is necessary for the build process.
This commit introduces several changes to the `.github/workflows/build-desktop-platforms.yml` GitHub Actions workflow:

- Removes the explicit `java-package: 'jdk'` from the Java setup step, as 'jdk' is the default.
- Eliminates the Debian container and the manual installation of build dependencies from the `build-linux` job, simplifying the setup.
- Removes a command that would output logs for a failed `createRuntimeImage` step, cleaning up the retry logic.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 6, 2026

Caution

Review failed

The pull request is closed.

Walkthrough

The PR updates the GitHub Actions workflow for desktop platform builds. It modifies the macOS build matrix to target different OS versions, replaces the Linux containerized and manual JDK installation approach with a hosted JDK 21 setup action, while leaving the Windows build unchanged.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow Configuration
.github/workflows/build-desktop-platforms.yml
Updated macOS matrix: replaced macos-15-intel with macos-13 and macos-latest with macos-14. Refactored Linux job: removed Debian container usage and manual dependency installation; added actions/setup-java for JDK 21 setup. Windows job untouched.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Poem

🐰 The workflows hop anew,
macOS versions switch their queue,
Linux sheds containers with grace,
JDK setup finds its place,
CI/CD flows cleaner than dew! 🚀


📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b1388be and bc7fcd4.

📒 Files selected for processing (3)
  • .github/workflows/build-desktop-platforms.yml
  • composeApp/release/baselineProfiles/0/composeApp-release.dm
  • composeApp/release/baselineProfiles/1/composeApp-release.dm

Comment @coderabbitai help to get the list of available commands and usage tips.

@rainxchzed rainxchzed merged commit 442f2b6 into main Jan 6, 2026
3 of 6 checks passed
@rainxchzed rainxchzed deleted the generate-installers branch January 6, 2026 10:44
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.

2 participants