1616 VERSION_TAG : ${{ steps.setup_version_properties.outputs.VERSION_TAG }}
1717 VERSION_LAST_TAG : ${{ steps.setup_version_properties.outputs.VERSION_LAST_TAG }}
1818 steps :
19+ - name : Enable long paths
20+ run : git config --global core.longpaths true
21+ shell : pwsh
22+ - name : Enable long paths (system-wide)
23+ if : runner.os == 'Windows'
24+ run : |
25+ New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
26+ -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
27+ shell : pwsh
1928 - uses : RDXWorks-actions/checkout@main
2029 with :
2130 fetch-depth : 0
5665 artifact : ' corerust.dll'
5766 zipname : ' arch-windows-x86_64-gnu'
5867 steps :
68+ - name : Enable long paths
69+ run : git config --global core.longpaths true
70+ shell : pwsh
71+ - name : Enable long paths (system-wide)
72+ if : runner.os == 'Windows'
73+ run : |
74+ New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
75+ -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
76+ shell : pwsh
5977 - uses : RDXWorks-actions/checkout@main
6078 with :
6179 lfs : true
7694 profile : minimal
7795 toolchain : stable
7896 override : true
79- - name : Set git config for long paths
80- if : matrix.os == 'windows-latest'
81- run : |
82- git config --system core.longpaths true
8397 - name : Install Rust Targets
8498 run : |
8599 rustup target install ${{ matrix.target }}
@@ -100,6 +114,7 @@ jobs:
100114 echo "ls ./target/${{ matrix.target }}/release"
101115 ls ./target/${{ matrix.target }}/release/
102116 env :
117+ CXXFLAGS : " -include cstdint"
103118 CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER : " ${{ matrix.target == 'aarch64-unknown-linux-gnu' && '' || 'aarch64-linux-gnu-gcc' }}"
104119 - uses : RDXWorks-actions/upload-artifact@main
105120 with :
@@ -138,6 +153,15 @@ jobs:
138153 artifact : ' corerust.dll'
139154 zipname : ' arch-windows-x86_64-gnu'
140155 steps :
156+ - name : Enable long paths
157+ run : git config --global core.longpaths true
158+ shell : pwsh
159+ - name : Enable long paths (system-wide)
160+ if : runner.os == 'Windows'
161+ run : |
162+ New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
163+ -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
164+ shell : pwsh
141165 - uses : RDXWorks-actions/checkout@main
142166 with :
143167 lfs : true
0 commit comments