Install Wayland dev headers for the Fyne/glfw build in CI
CI / go (push) Successful in 2m29s
CI / sqlc (push) Successful in 5s
CI / web (push) Successful in 41s
CI / docker (push) Successful in 1m55s

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 <noreply@anthropic.com>
This commit is contained in:
SansanandClaude Sonnet 5 committed 2026-10-03 15:44:58 +02:00
1 parent 959b6793da
commit 066f316dc6
2 files changed
+8 -4

No files matched your search

+7 -3
View File
@@ -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: |
+1 -1
View File
@@ -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