forked from quic-go/quic-go
add support for Go 1.16
This commit is contained in:
5
.github/workflows/cross-compile.sh
vendored
5
.github/workflows/cross-compile.sh
vendored
@@ -11,7 +11,10 @@ for dist in $(go tool dist list); do
|
||||
if [[ "$goos" == "darwin" && $goarch == "arm64" ]]; then continue; fi # ... darwin/arm64 neither
|
||||
if [[ $GOVERSION == "1.14" && $goos == "darwin" && $goarch == "arm" ]]; then continue; fi # Go 1.14 lacks syscall.IPV6_RECVTCLASS
|
||||
|
||||
cgo=0
|
||||
if [[ "$goos" == "ios" ]]; then cgo=1; fi # iOS builds require CGO, see https://github.com/golang/go/issues/43343
|
||||
|
||||
echo "$dist"
|
||||
GOOS=$goos GOARCH=$goarch go build -o main example/main.go
|
||||
GOOS=$goos GOARCH=$goarch CGO_ENABLED=$cgo go build -o main example/main.go
|
||||
rm main
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user