17 lines
673 B
Bash
Executable File
17 lines
673 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Install native dependencies
|
|
apt update
|
|
apt install -y curl
|
|
|
|
# Install bagccgop
|
|
curl -L -o /tmp/bagccgop "https://github.com/pojntfx/bagccgop/releases/latest/download/bagccgop.linux-$(uname -m)"
|
|
install /tmp/bagccgop /usr/local/bin
|
|
|
|
# Build
|
|
GOFLAGS='-gccgoflags=-static' bagccgop -x '(linux/alpha|linux/mipsle|linux/arm$)' -j1 -b stfs -n -r 'make depend' -s 'build-essential,automake' -m 'libsqlite3-dev' -p 'chmod +w /root/go/pkg/mod/google.golang.org/grpc@*/internal/channelz/types_linux.go && sed -i "s/SO_SNDTIMEO/SO_RCVTIMEO/" /root/go/pkg/mod/google.golang.org/grpc@*/internal/channelz/types_linux.go && make build/stfs DST=$DST' -d out
|
|
|
|
exit 0
|