mirror of
https://github.com/freemkv/libfreemkv.git
synced 2026-10-07 18:13:10 +00:00
ci(consumers): install libgtk-4-dev so the freemkv consumer build resolves
The freemkv 1.7.6 Linux target compiles a GTK4 + libadwaita desktop shell, so this job's downstream `cargo test`/`cargo check` on freemkv hits `gtk4-sys`/`glib-sys` pkg-config probes that fail on a stock ubuntu runner. Adds the apt-get step alongside the existing sibling checkout, mirroring the fix in freemkv's own ci.yml `cli-linux` job. Kept local (not in the shared reusable checkout action) — only `freemkv` links against GTK; adding the deps to every downstream consumer would tax the six that don't.
This commit is contained in:
@@ -214,6 +214,16 @@ jobs:
|
|||||||
freemkv-i18n = { path = "../freemkv-i18n" }
|
freemkv-i18n = { path = "../freemkv-i18n" }
|
||||||
EOF
|
EOF
|
||||||
done
|
done
|
||||||
|
# Since freemkv 1.7.6 the `freemkv` consumer's Linux target compiles a
|
||||||
|
# GTK4 + libadwaita desktop shell, so `cargo test` on it needs the
|
||||||
|
# pkg-config dev headers the `gtk4-sys`/`glib-sys` build.rs scripts
|
||||||
|
# probe. Kept local (not in the shared reusable) — only freemkv links
|
||||||
|
# against GTK; adding the deps to every consumer would tax the six
|
||||||
|
# that don't.
|
||||||
|
- name: Install GTK4 + libadwaita development headers (for freemkv)
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y libgtk-4-dev libadwaita-1-dev build-essential
|
||||||
# Dependents track the highest supported Rust — build on stable so this job
|
# Dependents track the highest supported Rust — build on stable so this job
|
||||||
# satisfies the highest dependent floor (the library's own lower MSRV, which
|
# satisfies the highest dependent floor (the library's own lower MSRV, which
|
||||||
# the `test` job verifies, cannot compile them).
|
# the `test` job verifies, cannot compile them).
|
||||||
|
|||||||
Reference in New Issue
Block a user