mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 13:01:05 +00:00
ci: Combine windows features builds
Part of gstreamer/gstreamer-rs#417 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1166>
This commit is contained in:
parent
c3a950f207
commit
d867077c3a
2 changed files with 44 additions and 44 deletions
|
@ -687,17 +687,7 @@ windows rust docker msrv:
|
|||
- 'docker'
|
||||
- 'windows'
|
||||
- '2022'
|
||||
parallel:
|
||||
matrix:
|
||||
- FEATURES:
|
||||
- "--features=v1_18,"
|
||||
- "--features=v1_20,"
|
||||
- "--features=v1_22,"
|
||||
- "--no-default-features"
|
||||
- ""
|
||||
script:
|
||||
- echo $env:FEATURES
|
||||
|
||||
# Skip -sys tests as they don't work
|
||||
# https://github.com/gtk-rs/gtk3-rs/issues/54
|
||||
#
|
||||
|
|
|
@ -35,11 +35,20 @@
|
|||
'examples'
|
||||
)
|
||||
|
||||
foreach($crate in $crates)
|
||||
{
|
||||
[string[]] $features_matrix = @(
|
||||
"--no-default-features",
|
||||
"",
|
||||
"--features=v1_18,",
|
||||
"--features=v1_20,",
|
||||
"--features=v1_22,"
|
||||
)
|
||||
|
||||
foreach($features in $features_matrix) {
|
||||
foreach($crate in $crates)
|
||||
{
|
||||
Write-Host "Building crate: $crate"
|
||||
Write-Host "Features: $env:FEATURES"
|
||||
$env:LocalFeatures = $env:FEATURES
|
||||
Write-Host "Features: $features"
|
||||
$env:LocalFeatures = $features
|
||||
|
||||
# Don't append feature flags if the string is null/empty
|
||||
# Or when we want to build without default features
|
||||
|
@ -78,4 +87,5 @@ foreach($crate in $crates)
|
|||
Write-Host "Tests failed to for crate: $crate"
|
||||
Exit 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue