mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-20 23:59:55 +00:00
[ci] Switch CI deps to GTK4 / WebKitGTK 6.0
Wails v3 alpha.94 switched its default Linux backend from GTK3 + WebKit2GTK 4.1 to GTK4 + WebKitGTK 6.0 (the GTK3 path is now gated behind a `gtk3` build tag). cgo files that the binary, the tests, and the lint job all parse now request `pkg-config --cflags gtk4 webkitgtk-6.0 ...`, so the existing libgtk-3-dev + libwebkit2gtk-4.1 apt deps no longer satisfy them — lint, unit tests, and the linux release build all fail with `Package 'gtk4' ... not found`. Replace the apt deps across the four workflows that build/lint the client tree (golangci-lint, golang-test-linux, release, and the wasm lint job that also walks client/) with libgtk-4-dev + libwebkitgtk-6.0-dev + libsoup-3.0-dev. Both packages are available from jammy (22.04 LTS) onwards, so existing ubuntu-22.04 runners stay valid.
This commit is contained in:
4
.github/workflows/golang-test-linux.yml
vendored
4
.github/workflows/golang-test-linux.yml
vendored
@@ -51,7 +51,7 @@ jobs:
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: sudo apt update && sudo apt install -y -q libgtk-3-dev libwebkit2gtk-4.1-dev libsoup-3.0-dev libayatana-appindicator3-dev libgl1-mesa-dev xorg-dev gcc-multilib libpcap-dev
|
||||
run: sudo apt update && sudo apt install -y -q libgtk-4-dev libwebkitgtk-6.0-dev libsoup-3.0-dev libayatana-appindicator3-dev libgl1-mesa-dev xorg-dev gcc-multilib libpcap-dev
|
||||
|
||||
- name: Install 32-bit libpcap
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
@@ -141,7 +141,7 @@ jobs:
|
||||
${{ runner.os }}-gotest-cache-
|
||||
|
||||
- name: Install dependencies
|
||||
run: sudo apt update && sudo apt install -y -q libgtk-3-dev libwebkit2gtk-4.1-dev libsoup-3.0-dev libayatana-appindicator3-dev libgl1-mesa-dev xorg-dev gcc-multilib libpcap-dev
|
||||
run: sudo apt update && sudo apt install -y -q libgtk-4-dev libwebkitgtk-6.0-dev libsoup-3.0-dev libayatana-appindicator3-dev libgl1-mesa-dev xorg-dev gcc-multilib libpcap-dev
|
||||
|
||||
- name: Install 32-bit libpcap
|
||||
if: matrix.arch == '386'
|
||||
|
||||
Reference in New Issue
Block a user