Skip to content

Commit

Permalink
ci: allow long file paths on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kalzoo committed May 1, 2024
1 parent acfea0f commit a8bbee4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ jobs:
- stable

steps:
# Some of the snapshots have long file paths, so we need to enable long file paths on Windows where the limit is 260 by default
- name: Allow Long File Paths
if: matrix.os == 'windows-latest'
run: |
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f
# https://github.com/actions/checkout/issues/1285#issuecomment-2042579471
git config --system core.longpaths true
- name: Checkout sources
uses: actions/checkout@v2
with:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/publish-quil-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@ jobs:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
target: [x64]
steps:
steps:
# Some of the snapshots have long file paths, so we need to enable long file paths on Windows where the limit is 260 by default
- name: Allow Long File Paths
run: |
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f
# https://github.com/actions/checkout/issues/1285#issuecomment-2042579471
git config --system core.longpaths true
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
Expand Down

0 comments on commit a8bbee4

Please sign in to comment.