[llvm] [Github] Enable long paths in windows CI Container (PR #184224)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 2 12:49:38 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-github-workflow
Author: Aiden Grossman (boomanaiden154)
<details>
<summary>Changes</summary>
Otherwise we run into issues with file paths >260 characters.
https://github.com/ninja-build/ninja/issues/2400
https://gitlab.kitware.com/cmake/cmake/-/issues/22435
---
Full diff: https://github.com/llvm/llvm-project/pull/184224.diff
1 Files Affected:
- (modified) .github/workflows/containers/github-action-ci-windows/Dockerfile (+5)
``````````diff
diff --git a/.github/workflows/containers/github-action-ci-windows/Dockerfile b/.github/workflows/containers/github-action-ci-windows/Dockerfile
index 508c5964bea19..f3f421a30dc49 100644
--- a/.github/workflows/containers/github-action-ci-windows/Dockerfile
+++ b/.github/workflows/containers/github-action-ci-windows/Dockerfile
@@ -89,6 +89,11 @@ RUN powershell -Command \
RUN git config --system core.longpaths true & \
git config --global core.autocrlf false
+# Enable long paths so that ninja can work with paths longer than 260 characters.
+RUN powershell -Command \
+ New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" \
+ -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
+
ARG RUNNER_VERSION=2.331.0
ENV RUNNER_VERSION=$RUNNER_VERSION
``````````
</details>
https://github.com/llvm/llvm-project/pull/184224
More information about the llvm-commits
mailing list