diff --git a/ci/run_windows_tests.ps1 b/ci/run_windows_tests.ps1 index 14e50645..19808a3f 100644 --- a/ci/run_windows_tests.ps1 +++ b/ci/run_windows_tests.ps1 @@ -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") \ No newline at end of file