Skip to content

Commit

Permalink
build tailscale client
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmeziere authored and nshalman committed Aug 21, 2024
1 parent 5890df5 commit a45af6c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cross-illumos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/nshalman-sunos-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
Expand All @@ -35,5 +35,9 @@ jobs:
files: |
cmd/tailscaled/tailscale.xml
sha256sums
tailscale-illumos
tailscale-solaris
tailscaled-illumos
tailscaled-solaris
tailscaled-plain-illumos
tailscaled-plain-solaris
14 changes: 12 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,21 @@ fix_osabi () {

for GOOS in illumos solaris; do
export GOOS
bash -x ./build_dist.sh --box ./cmd/tailscaled
# Build "box" binary that can be both daemon and client
# Continuing to use the same name as before
bash -x ./build_dist.sh --extra-small --box ./cmd/tailscaled
fix_osabi tailscaled
mv tailscaled{,-${GOOS}}
# Build plain daemon binary
bash -x ./build_dist.sh ./cmd/tailscaled
fix_osabi tailscaled
mv tailscaled{,-plain-${GOOS}}
# Build plain client binary
bash -x ./build_dist.sh ./cmd/tailscale
fix_osabi tailscale
mv tailscale{,-${GOOS}}
done

ln cmd/tailscaled/tailscale.xml .
shasum -a 256 tailscaled-* tailscale.xml >sha256sums
shasum -a 256 tailscaled-* tailscale-* tailscale.xml >sha256sums
rm ./tailscale.xml

0 comments on commit a45af6c

Please sign in to comment.