Merge branch 'gtk4-win-ci' into 'main'

ci: windows: build GTK4 crate

See merge request gstreamer/gst-plugins-rs!1418
This commit is contained in:
Guillaume Desmottes 2024-04-27 23:13:19 +00:00
commit 00e449c608

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")