ci: use meson 1.1.1 in the 1.22 branch Windows CI
[platform/upstream/gstreamer.git] / ci / docker / windows / prepare_gst_env.ps1
1 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
2
3 # FIXME: Python fails to validate github.com SSL certificate, unless we first
4 # run a dummy download to force refreshing Windows' CA database.
5 # See: https://bugs.python.org/issue36137
6 (New-Object System.Net.WebClient).DownloadString("https://github.com") >$null
7
8 Write-Host "Cloning GStreamer"
9 git clone -b $env:DEFAULT_BRANCH https://gitlab.freedesktop.org/gstreamer/gstreamer.git C:\gstreamer
10
11 # download the subprojects to try and cache them
12 Write-Host "Downloading subprojects"
13 meson subprojects download --sourcedir C:\gstreamer
14
15 Write-Host "Caching subprojects into /subprojects/"
16 python C:\gstreamer/ci/scripts/handle-subprojects-cache.py --build C:\gstreamer/subprojects/
17 Remove-Item -Recurse -Force C:\gstreamer