tailscale / github-action

A GitHub Action to connect your workflow to your Tailscale network.
BSD 3-Clause "New" or "Revised" License
519 stars 78 forks source link

Tailscale windows support #93

Closed aubreyyan closed 8 months ago

aubreyyan commented 8 months ago

I'm getting the following error when I add tailscale to my github actions:

Run echo "::error title=⛔ error hint::Support Linux Only"
  echo "::error title=⛔ error hint::Support Linux Only"
  exit 1
  shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0}

The github workflow looks like this:

name: test

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

jobs:

  run-tests:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ windows-latest ]
        python-version: [ '3.8' ]

    steps:
      - name: Tailscale
        uses: tailscale/github-action@v2
        with:
          oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
          oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
          tags: tag:ci
      - uses: actions/checkout@v3

Is my use case not supported?

DentonGentry commented 8 months ago

This GitHub Action currently only supports Linux runners. The error message is "⛔ error hint::Support Linux Only"


If using private Windows CI runners, Tailscale could be installed on the underlying machine instead of being part of the Action.

We cannot easily add support for Windows runners supplied by GitHub because installation requires Administrator rights. We'd have to run the Windows Tailscale in userspace-networking mode, which means it would require all of the other binaries in the Action to support SOCKS5 or HTTP Proxies. https://tailscale.com/kb/1112/userspace-networking/

bradfitz commented 8 months ago

Dup of #61?

DentonGentry commented 8 months ago

Duplicate of https://github.com/tailscale/github-action/issues/61