From 0a0511c27a7f981ad15b0f8d0292f98df5812aa0 Mon Sep 17 00:00:00 2001 From: Rody Davis Date: Sat, 13 Jun 2026 09:57:22 -0700 Subject: [PATCH] fix: add MTU size fix for Proxmox/Docker network compatibility --- setup-bazel/action.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/setup-bazel/action.yml b/setup-bazel/action.yml index 16cf2af..ef48c1d 100644 --- a/setup-bazel/action.yml +++ b/setup-bazel/action.yml @@ -17,6 +17,19 @@ inputs: runs: using: 'composite' steps: + - name: Fix MTU size for Proxmox/Docker network compatibility + shell: bash + run: | + DEFAULT_INTERFACE=$(ip route show | grep default | awk '{print $5}') + if [ -n "$DEFAULT_INTERFACE" ]; then + echo "Setting MTU of $DEFAULT_INTERFACE to 1400..." + if [ "$(id -u)" -eq 0 ]; then + ip link set dev "$DEFAULT_INTERFACE" mtu 1400 || true + else + sudo ip link set dev "$DEFAULT_INTERFACE" mtu 1400 || true + fi + fi + - name: Setup Node uses: actions/setup-node@v4 with: