Skip to content

Commit 16e272e

Browse files
committed
fix(github-actions): disable WSL cache
See comment in code.
1 parent 3a56871 commit 16e272e

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

github-actions/setup-wsl/action.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,25 @@ runs:
108108
echo "repo=$repo_path" >> $GITHUB_OUTPUT
109109
echo "Repo path is: $repo_path"
110110
111-
- name: Cache for nvm, pnpm profile caches.
112-
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
113-
with:
114-
path: |
115-
C:\\wsl_root\\root\\.nvm\\versions
116-
C:\\wsl_root\\root\\.local\\share\\pnpm\\store\\
117-
key: "${{ runner.os }}-wsl-cache-v${{inputs.cache_version}}-${{hashFiles('**/.nvmrc')}}-${{hashFiles('**/pnpm-lock.yaml')}}"
118-
restore-keys: |
119-
${{ runner.os }}-wsl-cache-v${{inputs.cache_version}}-
111+
# Temporary disable the cache action because the post step takes up to 10mins in the CLI and also there are several errors:
112+
# "C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C C:/a/angular-cli/angular-cli --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
113+
# /usr/bin/tar: ../../../wsl_root/root/.nvm/versions/node/v22.18.0/bin/corepack: Cannot stat: Input/output error
114+
# /usr/bin/tar: ../../../wsl_root/root/.nvm/versions/node/v22.18.0/bin/pnpx: Cannot stat: Input/output error
115+
# /usr/bin/tar: ../../../wsl_root/root/.nvm/versions/node/v22.18.0/bin/npm: Cannot stat: Input/output error
116+
# /usr/bin/tar: ../../../wsl_root/root/.nvm/versions/node/v22.18.0/bin/npx: Cannot stat: Input/output error
117+
# /usr/bin/tar: ../../../wsl_root/root/.nvm/versions/node/v22.18.0/bin/pnpm: Cannot stat: Input/output error
118+
# /usr/bin/tar: Exiting with failure status due to previous errors
119+
# Warning: Failed to save: "C:\Program failed with error: The process 'C:\Program Files\Git\usr\bin\tar.exe' failed with exit code 2
120+
121+
# - name: Cache for nvm, pnpm profile caches.
122+
# uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
123+
# with:
124+
# path: |
125+
# C:\\wsl_root\\root\\.nvm\\versions
126+
# C:\\wsl_root\\root\\.local\\share\\pnpm\\store\\
127+
# key: "${{ runner.os }}-wsl-cache-v${{inputs.cache_version}}-${{hashFiles('**/.nvmrc')}}-${{hashFiles('**/pnpm-lock.yaml')}}"
128+
# restore-keys: |
129+
# ${{ runner.os }}-wsl-cache-v${{inputs.cache_version}}-
120130
- name: Setup nvm
121131
shell: wsl-bash {0}
122132
run: |

0 commit comments

Comments
 (0)