File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,6 +144,19 @@ jobs:
144144 matrix:
145145 os: [ubuntu-latest, windows-latest]
146146 steps:
147+ # Enable 8.3 filename creation. This is not required to run the extension but it is required for the unit tests to pass.
148+ # This feature is currently enabled by default in Windows 11 for the C: drive and therefore we must maintain support for it.
149+ # This setting needs to be enabled before files are created, i.e. before we checkout the repository.
150+ - name: Enable 8.3 filenames
151+ shell: pwsh
152+ if: ${{ matrix.os == 'windows-latest' }}
153+ run: |
154+ $shortNameEnableProcess = Start-Process -FilePath fsutil.exe -ArgumentList ('8dot3name', 'set', '0') -Wait -PassThru
155+ $shortNameEnableExitCode = $shortNameEnableProcess.ExitCode
156+ if ($shortNameEnableExitCode -ne 0) {
157+ exit $shortNameEnableExitCode
158+ }
159+
147160 - name: Checkout
148161 uses: actions/checkout@v4
149162 with:
You can’t perform that action at this time.
0 commit comments