summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorJordan Petridis <jordan@centricular.com>2022-05-13 11:23:59 +0300
committerJordan PetridÑ–s <jpetridis@gnome.org>2022-05-18 09:14:08 +0000
commit6adb7eb22c1a98451250d2c6203ad284a9f06872 (patch)
treeaf44dca912881bc679a8473d4381a05f15b52d9c /ci
parent5cd3f6884203fd578e385010b07f92a00bffb8dd (diff)
downloadgstreamer-6adb7eb22c1a98451250d2c6203ad284a9f06872.tar.gz
ci: use LONGPATH for the windows container
Sometimes the CI might create paths that are bigger than the 260 character limit. ex: ``` error: unable to create file subprojects/gst-integration-testsuites/testsuites/validate/h264/parse.trickmode_predicted.seek_trickmode_predicted/flow-expectations/log-parse-src-expected: Filename too long ``` https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2395>
Diffstat (limited to 'ci')
-rw-r--r--ci/docker/windows/Dockerfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/ci/docker/windows/Dockerfile b/ci/docker/windows/Dockerfile
index c38ac70ecd..77ba0a1db0 100644
--- a/ci/docker/windows/Dockerfile
+++ b/ci/docker/windows/Dockerfile
@@ -19,6 +19,11 @@ RUN choco install -y 7zip
RUN choco install -y python3
RUN choco install -y msys2 --params '/NoPath /NoUpdate /InstallDir:C:\\msys64'
+# Remove MAX_PATH limit of 260 characters
+RUN New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\FileSystem' `
+ -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
+RUN git config --system core.longpaths true
+
RUN c:\msys64\usr\bin\bash -lc 'pacman -S --noconfirm mingw-w64-ucrt-x86_64-toolchain ninja'
# Visual Studio can't be installed with choco.
# It depends on dotnetfx v4.8.0.20190930, which requires a reboot: dotnetfx (exit code 3010)