Skip to content

Commit 574e509

Browse files
committed
feat(github-actions): support configuring networking mode for WSL action
This will be useful if we want to try the WSL2 mirrored network mode, that merges both "hosts" into a single "localhost".
1 parent b594d47 commit 574e509

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

github-actions/setup-wsl/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ inputs:
77
description: Interface alias for the WSL firewall.
88
default: 'vEthernet (WSL)'
99
required: false
10+
wsl_networking_mode:
11+
description: Networking mode for the WSL config
12+
default: NAT
13+
required: false
1014

1115
outputs:
1216
cmd_path:
@@ -44,6 +48,7 @@ runs:
4448
firewall=false
4549
localhostForwarding=false
4650
memory=14GB
51+
networkingMode=${{inputs.wsl_networking_mode}}
4752
wsl-shell-command: bash --login -euo pipefail
4853
additional-packages: |
4954
curl

0 commit comments

Comments
 (0)