gst-plugins-rs/ci/run_windows_tests.ps1
Jordan Petridis 165f3a788b ci/windows: Build all the crates at once
In gst-rs we build each crate on its own, since not all
crates share the same features and some conflict with each other.

However currently, that isn't the case in plugins-rs and instead
we can be building all the crates with the same flags and simplify
the the script.

Close #241
2022-09-10 14:29:23 +03:00

27 lines
571 B
PowerShell

$env:ErrorActionPreference='Stop'
$exclude_crates = @(
"--exclude",
"gst-plugin-csound",
"--exclude",
"gst-plugin-webp"
)
Write-Host "Features: $env:CI_CARGO_FEATURES"
Write-Host "Exlcude string: $exclude_crates"
cargo build --color=always --workspace $exclude_crates --all-targets $env:CI_CARGO_FEATURES
if (!$?) {
Write-Host "Build failed"
Exit 1
}
$env:G_DEBUG="fatal_warnings"
cargo test --no-fail-fast --color=always --workspace $exclude_crates --all-targets $env:CI_CARGO_FEATURES
if (!$?) {
Write-Host "Tests failed"
Exit 1
}