File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060 run : go build ./...
6161 - name : Test
6262 run : ${{ matrix.test-cmd }}
63+ - name : Cross-build
64+ if : matrix.platform == 'ubuntu-24.04' && matrix.go-version == 'stable'
65+ run : |
66+ for target in $(go tool dist list); do
67+ case "$target" in
68+ android/*|ios/*|js/*|linux/amd64|plan9/*|wasip1/*|windows/amd64)
69+ echo "SKIP $target"
70+ continue
71+ ;;
72+ esac
73+ GOOS=${target%/*} GOARCH=${target#*/} go build ./... \
74+ && echo "PASS $target" \
75+ || { echo "FAIL $target"; exit 1; }
76+ done
Original file line number Diff line number Diff line change 1- //go:build !linux && !windows
1+ //go:build darwin || dragonfly || freebsd || netbsd || openbsd
22
33package sockets
44
Original file line number Diff line number Diff line change 1+ //go:build !linux && !darwin && !dragonfly && !freebsd && !netbsd && !openbsd && !windows
2+
3+ package sockets
4+
5+ import "syscall"
6+
7+ func maxListenerBacklog () int {
8+ return syscall .SOMAXCONN
9+ }
You can’t perform that action at this time.
0 commit comments