Skip to content

Commit 0783e2b

Browse files
committed
Enable long paths when building on Windows
1 parent 6b59737 commit 0783e2b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/windows-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
sed -i -e '/^$/d' .github/config.env
2828
cat .github/config.env >> "${GITHUB_ENV}"
2929
shell: bash
30+
- name: Enable long paths
31+
run: New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
32+
shell: pwsh
3033
- name: Get version
3134
run: |
3235
version=$(LC_ALL=en_US.utf8 grep -oP 'project\([^)]*\s+VERSION\s+\K[0-9]+\.[0-9]+\.[0-9]+' CMakeLists.txt)

0 commit comments

Comments
 (0)