ci: windows: build GTK4 crate

It's ignored when building using --all-features because of X11 and
Wayland deps, but we can build it manually.

Try building with and without the winegl feature.
This commit is contained in:
Guillaume Desmottes 2023-12-26 19:31:29 +01:00 committed by Guillaume Desmottes
parent 995f64513d
commit d21e147085

View file

@ -44,6 +44,32 @@ function Run-Tests {
}
}
function Run-Tests-Gtk4 {
param (
$Features
)
Write-Host "GTK4 Features: $Features"
cargo build --color=always --package gst-plugin-gtk4 --all-targets $Features
if (!$?) {
Write-Host "Build failed"
Exit 1
}
$env:G_DEBUG="fatal_warnings"
cargo test --no-fail-fast --color=always --package gst-plugin-gtk4 --all-targets $Features
if (!$?) {
Write-Host "Tests failed"
Exit 1
}
}
foreach($feature in $features_matrix) {
Run-Tests -Features $feature
}
Run-Tests-Gtk4 -Features @()
Run-Tests-Gtk4 -Features @("--features", "winegl")