From 65c06b505015c0e0b33b9af66ef13e3612711725 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Fri, 21 Feb 2025 08:35:37 +0000 Subject: [PATCH] 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". --- github-actions/setup-wsl/action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/github-actions/setup-wsl/action.yml b/github-actions/setup-wsl/action.yml index 9ae79be30..da38a3683 100644 --- a/github-actions/setup-wsl/action.yml +++ b/github-actions/setup-wsl/action.yml @@ -7,6 +7,10 @@ inputs: description: Interface alias for the WSL firewall. default: 'vEthernet (WSL)' required: false + wsl_networking_mode: + description: Networking mode for the WSL config + default: NAT + required: false outputs: cmd_path: @@ -44,6 +48,7 @@ runs: firewall=false localhostForwarding=false memory=14GB + networkingMode=${{inputs.wsl_networking_mode}} wsl-shell-command: bash --login -euo pipefail additional-packages: | curl