replace build script with multi-build script
Signed-off-by: kim (grufwub) <grufwub@gmail.com>master
parent
38b67d1588
commit
12660a8a46
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
PROJECT='gophor'
|
||||
OUTDIR='build'
|
||||
|
||||
build() {
|
||||
echo "Building $PROJECT for $1_$2..."
|
||||
env GOOS="$1" GOARCH="$2" go build -trimpath -o="$OUTDIR/$PROJECT.$1.$2" -buildmode="$3"
|
||||
echo ''
|
||||
}
|
||||
|
||||
mkdir -p "$OUTDIR"
|
||||
build 'linux' '386' 'pie'
|
||||
build 'linux' 'amd64' 'pie'
|
||||
build 'linux' 'arm' 'pie'
|
||||
build 'linux' 'arm64' 'pie'
|
||||
build 'linux' 'mips' 'default'
|
Loading…
Reference in New Issue