Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,25 +104,29 @@ jobs:
strategy:
fail-fast: false
matrix:
goos: [freebsd, openbsd]
include:
- {goos: freebsd, goarch: amd64}
- {goos: openbsd, goarch: amd64}
- {goos: plan9, goarch: '386'}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
# README's install table lists the BSDs as supported by building
# from source, so check that they at least keep cross-compiling:
# everything untagged (the go install path), and cmd/tailcat with
# the release build tags that INSTALL.md recommends to packagers.
# from source, so check that they (and Plan 9) at least keep
# cross-compiling: everything untagged (the go install path), and
# cmd/tailcat with the release build tags that INSTALL.md
# recommends to packagers.
- run: go build ./...
env:
GOOS: ${{ matrix.goos }}
GOARCH: amd64
GOARCH: ${{ matrix.goarch }}
- run: go build -o /dev/null -tags "$(cat build-tags.txt)" ./cmd/tailcat
env:
GOOS: ${{ matrix.goos }}
GOARCH: amd64
GOARCH: ${{ matrix.goarch }}
wasm:
runs-on: ubuntu-latest
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Tailscale Inc & contributors
// SPDX-License-Identifier: BSD-3-Clause

//go:build windows && !ts_omit_ssh
//go:build !unix && !ts_omit_ssh

package main

Expand All @@ -12,8 +12,9 @@ import (
)

// execSSH runs the ssh client as a child process with inherited stdio,
// since Windows has no exec. On success it exits the whole process with
// ssh's exit status; it only returns on failure to run ssh at all.
// since Windows and Plan 9 have no exec. On success it exits the whole
// process with ssh's exit status; it only returns on failure to run ssh
// at all.
func execSSH(sshExe string, argv []string) error {
cmd := exec.Command(sshExe, argv[1:]...)
cmd.Stdin = os.Stdin
Expand Down
Loading