Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work on cross platform build #61

Open
andrejohansson opened this issue Apr 14, 2023 · 4 comments
Open

Does not work on cross platform build #61

andrejohansson opened this issue Apr 14, 2023 · 4 comments

Comments

@andrejohansson
Copy link

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.
@andrewgbell
Copy link

Are there any plans for this to work on windows?

@bradfitz
Copy link
Member

bradfitz commented May 3, 2023

It should work fine on Linux.

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

@andrewgbell
Copy link

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...

@DentonGentry
Copy link
Contributor

Copying from #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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants