forked from wolfeidau/mq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·23 lines (19 loc) · 1.19 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#this message
export CGO_ENABLED=0
set -e
set -x
# compile lgtm for all architectures
GOOS=linux GOARCH=amd64 go build -o ./release/linux_amd64/mq github.com/jasonolmstead33/mq/cmd/mq
GOOS=linux GOARCH=386 go build -o ./release/linux_386/mq github.com/jasonolmstead33/mq/cmd/mq
GOOS=linux GOARCH=arm go build -o ./release/linux_arm/mq github.com/jasonolmstead33/mq/cmd/mq
GOOS=darwin GOARCH=amd64 go build -o ./release/darwin_amd64/mq github.com/jasonolmstead33/mq/cmd/mq
GOOS=windows GOARCH=386 go build -o ./release/windows_386/mq github.com/jasonolmstead33/mq/cmd/mq
GOOS=windows GOARCH=amd64 go build -o ./release/windows_amd64/mq github.com/jasonolmstead33/mq/cmd/mq
# tar binary files prior to upload
tar -cvzf release/mq_linux_amd64.tar.gz --directory=release/linux_amd64 mq
tar -cvzf release/mq_linux_386.tar.gz --directory=release/linux_386 mq
tar -cvzf release/mq_linux_arm.tar.gz --directory=release/linux_arm mq
tar -cvzf release/mq_darwin_amd64.tar.gz --directory=release/darwin_amd64 mq
tar -cvzf release/mq_windows_386.tar.gz --directory=release/windows_386 mq
tar -cvzf release/mq_windows_amd64.tar.gz --directory=release/windows_amd64 mq