From 066f316dc65f4090abbe89293617da60e8e071cd Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 3 Oct 2026 15:44:58 +0200 Subject: [PATCH] Install Wayland dev headers for the Fyne/glfw build in CI Found by actually running ci.yml on the real Gitea instance: the go job failed at go vet with "wayland-client-core.h: No such file or directory" building go-gl/glfw (a Fyne dependency), which compiles in both its X11 and Wayland backends by default. libgl1-mesa-dev + xorg-dev alone aren't enough; added libwayland-dev and libxkbcommon-dev to both ci.yml and release.yml's linux packages list. I'd only verified cmd/gui's build on macOS and via the Windows mingw-w64 cross-compile - never on an actual Linux machine, so this gap wasn't visible until the real CI run hit it. sqlc, web and docker all passed on that same run (confirmed from the job logs, not just the status column). Co-Authored-By: Claude Sonnet 5 --- .gitea/workflows/ci.yml | 10 +++++++--- .gitea/workflows/release.yml | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index bf1e7a3..0cf6f8e 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -15,12 +15,16 @@ jobs: go-version-file: go.mod # cmd/gui (Fyne) uses cgo and links against the system's OpenGL/X11 - # libraries, so building or testing ./... needs these present even - # though the GUI itself never opens a window in CI. + # *and* Wayland libraries (go-gl/glfw compiles in both backends), so + # building or testing ./... needs all of these present even though + # the GUI itself never opens a window in CI. Found by a real failure + # here, not guessed: go vet failed with "wayland-client-core.h: No + # such file or directory" when only libgl1-mesa-dev/xorg-dev were + # installed. - name: Install system dependencies for the Fyne GUI build run: | sudo apt-get update - sudo apt-get install -y libgl1-mesa-dev xorg-dev + sudo apt-get install -y libgl1-mesa-dev xorg-dev libwayland-dev libxkbcommon-dev - name: gofmt run: | diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index ab73d47..ee11e9c 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -84,7 +84,7 @@ jobs: include: - goos: linux goarch: amd64 - packages: libgl1-mesa-dev xorg-dev + packages: libgl1-mesa-dev xorg-dev libwayland-dev libxkbcommon-dev - goos: windows goarch: amd64 packages: gcc-mingw-w64-x86-64