Skip to content

Commit c2c4533

Browse files
Allow long filenames in git for the Windows Github runners
1 parent 93ef76f commit c2c4533

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.github/workflows/desktop-e2e.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ jobs:
317317
!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'
318318
runs-on: windows-latest
319319
steps:
320+
# By default, the longest path a filename can have in git on Windows is 260 character.
321+
- name: Set git config for long paths
322+
run: |
323+
git config --system core.longpaths true
320324
- name: Checkout repository
321325
uses: actions/checkout@v4
322326
- name: Checkout submodules

.github/workflows/downloader.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ jobs:
4040
# You should think twice before increasing this limit.
4141
MAX_BINARY_SIZE: 2621440
4242
steps:
43+
# By default, the longest path a filename can have in git on Windows is 260 character.
44+
- name: Set git config for long paths
45+
run: |
46+
git config --system core.longpaths true
47+
4348
- name: Checkout repository
4449
uses: actions/checkout@v4
4550

.github/workflows/frontend.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ jobs:
1818

1919
runs-on: ${{ matrix.os }}
2020
steps:
21+
# By default, the longest path a filename can have in git on Windows is 260 character.
22+
- name: Set git config for long paths
23+
if: runner.os == 'Windows'
24+
run: |
25+
git config --system core.longpaths true
26+
2127
- name: Checkout repository
2228
uses: actions/checkout@v4
2329

0 commit comments

Comments
 (0)