2019-07-01 15:55:46 +00:00
|
|
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
|
|
|
|
|
2020-01-22 11:59:44 +00:00
|
|
|
# FIXME: Python fails to validate github.com SSL certificate, unless we first
|
|
|
|
# run a dummy download to force refreshing Windows' CA database.
|
|
|
|
# See: https://bugs.python.org/issue36137
|
|
|
|
(New-Object System.Net.WebClient).DownloadString("https://github.com") >$null
|
|
|
|
|
2019-07-01 15:55:46 +00:00
|
|
|
# Download gst-build and all its subprojects
|
2020-04-23 15:49:07 +00:00
|
|
|
git clone -b $env:DEFAULT_BRANCH https://gitlab.freedesktop.org/gstreamer/gst-build.git C:\gst-build
|
2019-07-01 15:55:46 +00:00
|
|
|
|
|
|
|
# download the subprojects to try and cache them
|
|
|
|
meson subprojects download --sourcedir C:\gst-build
|
|
|
|
|
|
|
|
# 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'
|
|
|
|
|
|
|
|
Move-Item C:\gst-build\subprojects C:\subprojects
|
|
|
|
Remove-Item -Recurse -Force C:\gst-build
|