Skip to content

Fix Linux desktop CI build by installing GTK3 dev dependency - #1

Merged
Eoic merged 4 commits into
masterfrom
copilot/fix-desktop-build-failure
Jul 27, 2026
Merged

Fix Linux desktop CI build by installing GTK3 dev dependency#1
Eoic merged 4 commits into
masterfrom
copilot/fix-desktop-build-failure

Conversation

Copilot AI commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

The desktop-build (ubuntu-latest, linux) Actions job was failing during flutter build linux because CMake could not find gtk+-3.0 on the Ubuntu runner. This updates the CI workflow to provision the required Linux desktop dependency only for the Linux matrix target.

  • Root cause addressed

    • flutter build linux depends on GTK3 development headers via pkg-config.
    • Ubuntu runner image no longer guarantees libgtk-3-dev preinstalled.
  • Workflow change (surgical)

    • Added a Linux-only install step in .github/workflows/ci.yml within desktop-build:
      • Runs apt-get update
      • Installs libgtk-3-dev
    • Scoped with if: matrix.target == 'linux' so Windows/macOS jobs are unaffected.
  • Resulting CI behavior

    • Linux desktop build job now has the required GTK toolchain before flutter build linux.
    • No changes to app code or non-Linux CI paths.
- run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev
  if: matrix.target == 'linux'

Copilot AI changed the title [WIP] Fix failing GitHub Actions job desktop-build (ubuntu-latest, linux) Fix Linux desktop CI build by installing GTK3 dev dependency Jul 27, 2026
Copilot finished work on behalf of Eoic July 27, 2026 14:45
Copilot AI requested a review from Eoic July 27, 2026 14:45
@Eoic
Eoic marked this pull request as ready for review July 27, 2026 15:23
Copilot AI review requested due to automatic review settings July 27, 2026 15:23
@Eoic
Eoic merged commit b1930e0 into master Jul 27, 2026
8 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Eoic
Eoic deleted the copilot/fix-desktop-build-failure branch July 27, 2026 15:24
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.

3 participants