Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions github-actions/setup-wsl/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ inputs:
description: Networking mode for the WSL config
default: NAT
required: false
cache_version:
description: Version that can be used to invalidate the cache
default: 1
required: false

outputs:
cmd_path:
Expand Down Expand Up @@ -87,6 +91,16 @@ runs:
shell: powershell
run: New-Item -ItemType SymbolicLink -Path "C:\wsl_root" -Target "\\wsl.localhost\Debian"

- name: Cache for nvm, yarn profile caches.
uses: actions/cache@v4
with:
path: |
C:\wsl_root\Debian\root\.nvm\versions
C:\wsl_root\Debian\root\.yarn\berry\cache
key: "${{ runner.os }}-wsl-cache-v${{inputs.cache_version}}-${{hashFiles('**/.nvmrc')}}-${{hashFiles('**/yarn.lock')}}"
restore-keys: |
${{ runner.os }}-wsl-cache-v${{inputs.cache_version}}-

- name: Setup nvm
shell: wsl-bash {0}
run: |
Expand Down
Loading