gstreamer/subprojects/gst-ci/docker/windows/prepare_gst_env.ps1

24 lines
900 B
PowerShell

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
# Download gst-build and all its subprojects
git clone -b $env:DEFAULT_BRANCH https://gitlab.freedesktop.org/gstreamer/gst-build.git C:\gst-build
if (!$?) {
Write-Host "Failed to clone gst-build"
Exit 1
}
# download the subprojects to try and cache them
meson subprojects download --sourcedir C:\gst-build
if (!$?) {
Write-Host "Failed to download the subprojects"
Exit 1
}
# Remove files that will conflict with a fresh clone on the runner side
Remove-Item -Force 'C:/gst-build/subprojects/*.wrap'
Remove-Item -Recurse -Force 'C:/gst-build/subprojects/win-nasm'
Remove-Item -Recurse -Force 'C:/gst-build/subprojects/win-flex-bison-binaries'
Remove-Item -Recurse -Force 'C:/gst-build/subprojects/macos-bison-binary'
Move-Item C:\gst-build\subprojects C:\subprojects
Remove-Item -Recurse -Force C:\gst-build