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 <noreply@anthropic.com>
This commit is contained in:
1 parent
959b6793da
commit
066f316dc6
2 files changed
+8
-4
No files matched your search
@@ -15,12 +15,16 @@ jobs:
|
|||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
|
|
||||||
# cmd/gui (Fyne) uses cgo and links against the system's OpenGL/X11
|
# cmd/gui (Fyne) uses cgo and links against the system's OpenGL/X11
|
||||||
# libraries, so building or testing ./... needs these present even
|
# *and* Wayland libraries (go-gl/glfw compiles in both backends), so
|
||||||
# though the GUI itself never opens a window in CI.
|
# 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
|
- name: Install system dependencies for the Fyne GUI build
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
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
|
- name: gofmt
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- goos: linux
|
- goos: linux
|
||||||
goarch: amd64
|
goarch: amd64
|
||||||
packages: libgl1-mesa-dev xorg-dev
|
packages: libgl1-mesa-dev xorg-dev libwayland-dev libxkbcommon-dev
|
||||||
- goos: windows
|
- goos: windows
|
||||||
goarch: amd64
|
goarch: amd64
|
||||||
packages: gcc-mingw-w64-x86-64
|
packages: gcc-mingw-w64-x86-64
|
||||||
|
|||||||
Reference in new issue
Block a user