Skip to content

Commit 4f37abf

Browse files
ci: enable Win32 long paths in CI build pipeline
Add registry fix to set LongPathsEnabled=1 as the first build step to resolve ENOENT errors caused by paths exceeding the 260-character MAX_PATH limit when all modules are built in a single agent workspace. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c6f780f commit 4f37abf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.azure-pipelines/ci-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ extends:
7474
artifactName: 'drop'
7575
publishLocation: 'Container'
7676
steps:
77+
- script: |
78+
reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f
79+
displayName: "Enable Win32 long paths"
7780
- script: |
7881
git submodule update --init --recursive
7982
- template: .azure-pipelines/common-templates/install-tools.yml@self

0 commit comments

Comments
 (0)