mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-06-09 09:49:22 +00:00
165f3a788b
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
27 lines
571 B
PowerShell
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
|
|
}
|