Skip to content

ci: update flatpak build environment to use Ubuntu 22.04 for glibc compatibility#549

Merged
skevetter merged 1 commit intomainfrom
flatpak-build-ubuntu-22-04
Mar 3, 2026
Merged

ci: update flatpak build environment to use Ubuntu 22.04 for glibc compatibility#549
skevetter merged 1 commit intomainfrom
flatpak-build-ubuntu-22-04

Conversation

@skevetter
Copy link
Owner

@skevetter skevetter commented Mar 3, 2026

Signed-off-by: Samuel K skevetter@pm.me

Summary by CodeRabbit

  • Chores
    • Updated build infrastructure for improved compatibility and stability across deployment environments.

…mpatibility

Signed-off-by: Samuel K <skevetter@pm.me>
@coderabbitai
Copy link

coderabbitai bot commented Mar 3, 2026

📝 Walkthrough

Walkthrough

Updates the build-flatpak CI job runner from ubuntu-latest to ubuntu-22.04 in two GitHub Actions workflows, with one adding privileged container capabilities and the other adding GLIBC compatibility comments.

Changes

Cohort / File(s) Summary
Flatpak Build Configuration
.github/workflows/pr-ci.yml, .github/workflows/release.yml
Updated build-flatpak job runner to ubuntu-22.04 for consistency. pr-ci.yml enables privileged container mode; release.yml adds comments documenting GLIBC compatibility rationale for Tauri app builds.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and specifically describes the main change: updating the flatpak build environment to Ubuntu 22.04 for glibc compatibility, which matches the actual modifications to the CI workflows.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch flatpak-build-ubuntu-22-04

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.

❤️ Share

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

@github-actions github-actions bot added the size/s label Mar 3, 2026
@skevetter skevetter marked this pull request as ready for review March 3, 2026 21:16
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
.github/workflows/release.yml (1)

206-214: Clarify and trim the GLIBC rationale comment.

The current block is very long and includes text that says Ubuntu 18.04 is more suitable than 22.04, which can confuse future maintainers given this job now uses 22.04. Consider a short, project-specific rationale plus link.

Proposed comment cleanup
-    # Use Ubuntu 22.04 to build the flatpak to ensure compatibility with older glibc versions, as recommended by Tauri. For more details, see
-    # https://v2.tauri.app/distribute/appimage/
-    # "Core libraries such as glibc frequently break compatibility with older systems. For this reason, you must build
-    # your Tauri application using the oldest base system you intend to support. A relatively old system such as
-    # Ubuntu 18.04 is more suited than Ubuntu 22.04, as the binary compiled on Ubuntu 22.04 will have a higher
-    # requirement of the glibc version, so when running on an older system, you will face a runtime error like
-    # /usr/lib/libc.so.6: version 'GLIBC_2.33' not found. We recommend using a Docker container or GitHub Actions to
-    # build your Tauri application for Linux."
+    # Use Ubuntu 22.04 for a stable Linux baseline for Flatpak CI and to avoid
+    # newer-host glibc drift. Context: https://v2.tauri.app/distribute/appimage/
     runs-on: ubuntu-22.04
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/release.yml around lines 206 - 214, Replace the long GLIBC
rationale comment above the runs-on: ubuntu-22.04 line with a concise,
project-specific note explaining that Ubuntu 22.04 is chosen for build
compatibility while linking to Tauri’s documentation for full details;
specifically, shorten the existing multi-paragraph explanation to a single line
(e.g., "Use Ubuntu 22.04 for Linux builds for compatibility; see
https://v2.tauri.app/distribute/appimage/ for GLIBC/build guidance") and keep
the runs-on: ubuntu-22.04 setting unchanged.
.github/workflows/pr-ci.yml (1)

526-534: Keep the GLIBC note concise and consistent with the selected runner.

This comment repeats a long quote and includes wording that suggests Ubuntu 18.04 is preferable, which conflicts with the configured 22.04 runner. Please shorten and align the rationale here the same way as in release.yml.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/pr-ci.yml around lines 526 - 534, Shorten and align the
GLIBC comment to match the rationale used in release.yml by removing the long
quoted passage and the suggestion that Ubuntu 18.04 is preferable; instead state
concisely that we use runs-on: ubuntu-22.04 to build the flatpak and ensure a
compatible glibc baseline for shipping, keeping the note brief and consistent
with other workflow files (edit the comment block above the runs-on:
ubuntu-22.04 line).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.github/workflows/pr-ci.yml:
- Around line 526-534: Shorten and align the GLIBC comment to match the
rationale used in release.yml by removing the long quoted passage and the
suggestion that Ubuntu 18.04 is preferable; instead state concisely that we use
runs-on: ubuntu-22.04 to build the flatpak and ensure a compatible glibc
baseline for shipping, keeping the note brief and consistent with other workflow
files (edit the comment block above the runs-on: ubuntu-22.04 line).

In @.github/workflows/release.yml:
- Around line 206-214: Replace the long GLIBC rationale comment above the
runs-on: ubuntu-22.04 line with a concise, project-specific note explaining that
Ubuntu 22.04 is chosen for build compatibility while linking to Tauri’s
documentation for full details; specifically, shorten the existing
multi-paragraph explanation to a single line (e.g., "Use Ubuntu 22.04 for Linux
builds for compatibility; see https://v2.tauri.app/distribute/appimage/ for
GLIBC/build guidance") and keep the runs-on: ubuntu-22.04 setting unchanged.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6fe7c4c and e1679f6.

📒 Files selected for processing (2)
  • .github/workflows/pr-ci.yml
  • .github/workflows/release.yml

@skevetter skevetter merged commit d5088ce into main Mar 3, 2026
73 of 77 checks passed
@skevetter skevetter deleted the flatpak-build-ubuntu-22-04 branch March 3, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant