github-action icon indicating copy to clipboard operation
github-action copied to clipboard

Does not work on cross platform build

Open andrejohansson opened this issue 2 years ago • 4 comments

I might be missing something, but for me this does not work on either linux, windows or macos (see #56) builds.

I'm trying to cross compile a tauri app using the script published here but all platforms fail on this action.

Since I fail on all platforms...am I missing something here? I´ve put up an epheremal key in tailscale admin console and added it to secrets.

Action definition

jobs:
  publish-tauri:
    permissions:
      contents: write
    strategy:
      fail-fast: false
      matrix:
        platform: [macos-latest, ubuntu-20.04, windows-latest]

    runs-on: ${{ matrix.platform }}
    steps:
      # Connect to our vpn in order to deliver artifacts
      - name: Tailscale
        uses: tailscale/github-action@v1
        with:
          authkey: ${{ secrets.TAILSCALE_AUTHKEY }}

macos failure

Run tailscale/github-action@v1
Run MINOR=$(echo $VERSION | awk -F '.' {'print $2'})
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 14.2M  100 14.2M    0     0  45.7M      0 --:--:-- --:--:-- --:--:-- 46.2M
mv: fastcopy: open() failed (to): /usr/bin/tailscale: Operation not permitted
mv: fastcopy: open() failed (to): /usr/bin/tailscaled: Operation not permitted
Error: Process completed with exit code 1.

windows failure

Run tailscale/github-action@v1
Run MINOR=$(echo $VERSION | awk -F '.' {'print $2'})
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 12 14.2M   12 1888k    0     0  2659k      0  0:00:05 --:--:--  0:00:05 2662k
100 14.2M  100 14.2M    0     0  14.2M      0  0:00:01  0:00:01 --:--:-- 14.2M
D:\a\_temp\de03d6bb-0580-475e-b0c2-e60dc28bf808.sh: line 11: sudo: command not found
Error: Process completed with exit code 127.

linux failure

The tricky part with linux is that it´s reporting success but it´s actually failing.

Run tailscale/github-action@v1
Run MINOR=$(echo $VERSION | awk -F '.' {'print $2'})
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 14.2M  100 14.2M    0     0   154M      0 --:--:-- --:--:-- --:--:--  154M
Run sudo tailscaled 2>~/tailscaled.log &
failed to connect to local tailscaled (which appears to be running). Got error: Get "http://local-tailscaled.sock/localapi/v0/status": dial unix /var/run/tailscale/tailscaled.sock: connect: no such file or directory
Success.

andrejohansson avatar Apr 14 '23 19:04 andrejohansson

Are there any plans for this to work on windows?

andrewgbell avatar May 03 '23 14:05 andrewgbell

It should work fine on Linux.

macOS and Windows should be possible but we haven't done the work yet.

bradfitz avatar May 03 '23 18:05 bradfitz

Windows would be handy since the hosted runners don't allow linux containers, so the idea would be to connect to a linux runner to use the container there...

andrewgbell avatar May 04 '23 19:05 andrewgbell

Copying from https://github.com/tailscale/github-action/issues/93

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/

DentonGentry avatar Oct 25 '23 22:10 DentonGentry

@bradfitz can't comment on Windows but #142 adds Mac support

gurchik avatar Oct 28 '24 18:10 gurchik

Hey folks! Closing this out as we have support for macOS and windows runners as of v3.2.0 of the action. Feel free to open new issues if you encounter any further problems running on these platforms!

mpminardi avatar Jun 16 '25 15:06 mpminardi