Skip to content

Commit f3331e7

Browse files
committed
Experimenting
1 parent 2b49897 commit f3331e7

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed

.github/workflows/tailscale.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ on:
44
workflow_dispatch:
55
push:
66
branches:
7-
- main
7+
- 'mpminardi/windows-experiments'
88
pull_request:
99
branches:
1010
- '*'
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
runs-on: windows-latest
1515
steps:
1616
- name: Check out code
1717
uses: actions/checkout@v2

action.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ inputs:
5151
runs:
5252
using: 'composite'
5353
steps:
54-
- name: Check Runner OS
55-
if: ${{ runner.os != 'Linux' }}
56-
shell: bash
57-
run: |
58-
echo "::error title=⛔ error hint::Support Linux Only"
59-
exit 1
6054
- name: Check Auth Info Empty
6155
if: ${{ inputs.authkey == '' && (inputs['oauth-secret'] == '' || inputs.tags == '') }}
6256
shell: bash
@@ -76,33 +70,31 @@ runs:
7670
fi
7771
if [ ${{ runner.arch }} = "ARM64" ]; then
7872
TS_ARCH="arm64"
79-
elif [ ${{ runner.arch }} = "ARM" ]; then
80-
TS_ARCH="arm"
8173
elif [ ${{ runner.arch }} = "X86" ]; then
82-
TS_ARCH="386"
74+
TS_ARCH="x86"
8375
elif [ ${{ runner.arch }} = "X64" ]; then
8476
TS_ARCH="amd64"
8577
else
8678
TS_ARCH="amd64"
8779
fi
8880
MINOR=$(echo "$VERSION" | awk -F '.' {'print $2'})
8981
if [ $((MINOR % 2)) -eq 0 ]; then
90-
URL="https://pkgs.tailscale.com/stable/tailscale_${VERSION}_${TS_ARCH}.tgz"
82+
URL="https://pkgs.tailscale.com/stable/tailscale-setup-${VERSION}-${TS_ARCH}.msi"
9183
else
92-
URL="https://pkgs.tailscale.com/unstable/tailscale_${VERSION}_${TS_ARCH}.tgz"
84+
URL="https://pkgs.tailscale.com/unstable/tailscale-setup-${VERSION}-${TS_ARCH}.msi"
9385
fi
9486
echo "Downloading $URL"
95-
curl -H user-agent:tailscale-github-action -L "$URL" -o tailscale.tgz --max-time 300 --fail
87+
curl -H user-agent:tailscale-github-action -L "$URL" -o tailscale.msi --max-time 300 --fail
9688
if ! [[ "$SHA256SUM" ]] ; then
9789
SHA256SUM="$(curl -H user-agent:tailscale-github-action -L "${URL}.sha256" --fail)"
9890
fi
9991
echo "Expected sha256: $SHA256SUM"
10092
echo "Actual sha256: $(sha256sum tailscale.tgz)"
101-
echo "$SHA256SUM tailscale.tgz" | sha256sum -c
102-
tar -C /tmp -xzf tailscale.tgz
103-
rm tailscale.tgz
104-
TSPATH=/tmp/tailscale_${VERSION}_${TS_ARCH}
105-
sudo mv "${TSPATH}/tailscale" "${TSPATH}/tailscaled" /usr/bin
93+
echo "$SHA256SUM tailscale.msi" | sha256sum -c
94+
#tar -C /tmp -xzf tailscale.tgz
95+
rm tailscale.msi
96+
#TSPATH=/tmp/tailscale_${VERSION}_${TS_ARCH}
97+
#sudo mv "${TSPATH}/tailscale" "${TSPATH}/tailscaled" /usr/bin
10698
- name: Start Tailscale Daemon
10799
shell: bash
108100
env:

0 commit comments

Comments
 (0)