Skip to content

Commit

Permalink
mips release with golang 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Feb 17, 2017
1 parent 9ad9af3 commit 7d2e2ba
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sudo: required
language: go
go:
- 1.7.5
- 1.8
go_import_path: v2ray.com/core
git:
depth: 5
Expand All @@ -28,6 +28,9 @@ deploy:
- $GOPATH/bin/v2ray-linux-arm.zip
- $GOPATH/bin/v2ray-linux-arm64.zip
- $GOPATH/bin/v2ray-linux-mips64.zip
- $GOPATH/bin/v2ray-linux-mips64le.zip
- $GOPATH/bin/v2ray-linux-mips.zip
- $GOPATH/bin/v2ray-linux-mipsle.zip
- $GOPATH/bin/v2ray-freebsd-64.zip
- $GOPATH/bin/v2ray-freebsd-32.zip
- $GOPATH/bin/v2ray-openbsd-64.zip
Expand Down
5 changes: 5 additions & 0 deletions tools/build/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const (
Arm = GoArch("arm")
Arm64 = GoArch("arm64")
Mips64 = GoArch("mips64")
Mips64LE = GoArch("mips64le")
Mips = GoArch("mips")
MipsLE = GoArch("mipsle")
UnknownArch = GoArch("unknown")
Expand Down Expand Up @@ -63,6 +64,8 @@ func parseArch(rawArch string) GoArch {
return MipsLE
case "mips64":
return Mips64
case "mips64le":
return Mips64LE
default:
return UnknownArch
}
Expand Down Expand Up @@ -92,6 +95,8 @@ func getSuffix(os GoOS, arch GoArch) string {
suffix = "-linux-arm64"
case Mips64:
suffix = "-linux-mips64"
case Mips64LE:
suffix = "-linux-mips64le"
case Mips:
suffix = "-linux-mips"
case MipsLE:
Expand Down
3 changes: 3 additions & 0 deletions tools/release/release-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ $GOPATH/bin/build --os=linux --arch=x64 --zip
$GOPATH/bin/build --os=linux --arch=arm --zip
$GOPATH/bin/build --os=linux --arch=arm64 --zip
$GOPATH/bin/build --os=linux --arch=mips64 --zip
$GOPATH/bin/build --os=linux --arch=mips64le --zip
$GOPATH/bin/build --os=linux --arch=mips --zip
$GOPATH/bin/build --os=linux --arch=mipsle --zip
$GOPATH/bin/build --os=freebsd --arch=x86 --zip
$GOPATH/bin/build --os=freebsd --arch=amd64 --zip
$GOPATH/bin/build --os=openbsd --arch=x86 --zip
Expand Down

0 comments on commit 7d2e2ba

Please sign in to comment.