Merge pull request #181 from tailscale/mpminardi/windows-unattended-mode

{.github/workflows,action.yml}: run windows in unattended mode
This commit is contained in:
Mario Minardi 2025-06-26 09:36:38 -06:00 committed by GitHub
commit 84a3f23bb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -13,7 +13,7 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, windows-latest, macos-latest, windows-11-arm]
cache: ['false', 'true']
runs-on: ${{ matrix.os }}
steps:

View file

@ -313,9 +313,12 @@ runs:
if [ "${{ runner.os }}" != "Windows" ]; then
MAYBE_SUDO="sudo -E"
fi
if [ "${{ runner.os }}" == "Windows" ]; then
PLATFORM_SPECIFIC_ARGS="--unattended"
fi
for ((i=1;i<=$RETRY;i++)); do
echo "Attempt $i to bring up Tailscale..."
timeout --verbose --kill-after=1s ${TIMEOUT} ${MAYBE_SUDO} tailscale up ${TAGS_ARG} --authkey=${TAILSCALE_AUTHKEY} --hostname=${HOSTNAME} --accept-routes ${ADDITIONAL_ARGS} && break
timeout --verbose --kill-after=1s ${TIMEOUT} ${MAYBE_SUDO} tailscale up ${TAGS_ARG} --authkey=${TAILSCALE_AUTHKEY} --hostname=${HOSTNAME} --accept-routes ${PLATFORM_SPECIFIC_ARGS} ${ADDITIONAL_ARGS} && break
echo "Tailscale up failed. Retrying in $((i * 5)) seconds..."
sleep $((i * 5))
done