Skip to content

Commit

Permalink
test add
Browse files Browse the repository at this point in the history
  • Loading branch information
mejgun committed Aug 22, 2020
1 parent a3be27c commit 09b674e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# https://github.com/golang/go/blob/master/src/go/build/syslist.go

BinDir="bin"
FilePrefix="yt-proxy"

OSListStr="aix android darwin dragonfly freebsd hurd illumos js linux nacl netbsd openbsd plan9 solaris windows zos"
OSList=($OSListStr)

Expand All @@ -15,7 +18,9 @@ do
for ARCH in ${ArchListStr}
do
echo $Total ${OS}/${ARCH}
GOPATH=$(pwd) GOOS=${OS} GOARCH=${ARCH} go build -ldflags '-s -w' -o bin/yt-proxy-${OS}-${ARCH} > /dev/null 2>&1
File=${BinDir}/${FilePrefix}-${OS}-${ARCH}
GOPATH=$(pwd) GOOS=${OS} GOARCH=${ARCH} go build -ldflags '-s -w' -o ${File} > /dev/null 2>&1 && md5sum ${File} > ${File}.md5sum
((Total=Total-1))
done
done

1 change: 1 addition & 0 deletions streamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ func errorToHeaders(e error) ([]string, []string) {
splitted := strings.Split(e.Error(), "\n")
filtered := make([]string, 0)
for _, v := range splitted {
v := strings.TrimSpace(v)
if len(v) > 0 {
filtered = append(filtered, v)
}
Expand Down

0 comments on commit 09b674e

Please sign in to comment.