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
13 changes: 13 additions & 0 deletions github-actions/setup-wsl/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ outputs:
tmp_dir:
description: WSL unix path pointing to the temporary directory in the host system.
value: ${{steps.wsl_paths.outputs.tmp_dir}}
wsl_root_path:
description: Windows path pointing to the WSL file system root (using a symlink).
value: C:\wsl_root
wsl_root_unc_path:
description: UNC Windows path pointing to the WSL file system root.
value: \\wsl.localhost\Debian

runs:
using: composite
Expand Down Expand Up @@ -66,12 +72,19 @@ runs:
shell: powershell
run: Set-NetFirewallProfile -Profile Public -DisabledInterfaceAliases "vEthernet (WSL)"

- name: Create link to WSL drive
shell: powershell
run: New-Item -ItemType SymbolicLink -Path "C:\wsl_root" -Target "\\wsl.localhost\Debian"

- name: Setup nvm
shell: wsl-bash {0}
run: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
export NVM_DIR="$HOME/.nvm"
# Note: Specify `--install` due to https://github.com/nvm-sh/nvm/issues/1985.
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --install

- run: nvm install
shell: wsl-bash {0}
- run: npm install -g yarn@1
shell: wsl-bash {0}
Loading