Skip to content

Commit

Permalink
[ci] More Windows git hacks (#7102)
Browse files Browse the repository at this point in the history
Issue: #

### Brief Summary

Sometimes we can see `filename too long` errors in `actions/checkout`
step, with the added `core.longpaths=true` we can (hopefully) solve
this.

Still didn't figure out the exact reason why checked-out repos go
corrupt, but this seems a reasonable candidate.


![2023-01-09-151745_1951x428_scrot](https://user-images.githubusercontent.com/857880/211257397-2447a941-84ce-4e3c-87c5-0efdc4ec40d8.png)
  • Loading branch information
feisuzhu authored Jan 9, 2023
1 parent 042c1e1 commit b48483a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,11 @@ jobs:
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
runs-on: [self-hosted, windows, cuda, OpenGL]
steps:
- name: Workaround checkout Needed single revision issue
run: |
git config --system core.longpaths true
git submodule foreach 'git rev-parse HEAD > /dev/null 2>&1 || rm -rf $PWD'
- uses: actions/checkout@v3
with:
submodules: 'recursive'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ jobs:
steps:
- name: Workaround checkout Needed single revision issue
run: |
git config --system core.longpaths true
git submodule foreach 'git rev-parse HEAD > /dev/null 2>&1 || rm -rf $PWD'
- uses: actions/checkout@v3
Expand Down

0 comments on commit b48483a

Please sign in to comment.