Skip to content

Commit

Permalink
modify the makefile to support mips64 (#407)
Browse files Browse the repository at this point in the history
Signed-off-by: Wenlong Zhang <[email protected]>
  • Loading branch information
zhangwenlong8911 authored Jan 22, 2021
1 parent b197146 commit c0e6254
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bootstrap:
@go mod download && go mod vendor

.PHONY: build
build: build-linux build-mac build-windows
build: build-linux build-mac build-windows build-linux-mips

build-windows: export GOOS=windows
build-windows: export GOARCH=amd64
Expand All @@ -34,6 +34,17 @@ build-linux:
-o bin/linux/amd64/chartmuseum cmd/chartmuseum/main.go # linux
sha256sum bin/linux/amd64/chartmuseum || shasum -a 256 bin/linux/amd64/chartmuseum

build-linux-mips: export GOOS=linux
build-linux-mips: export GOARCH=mips64le
build-linux-mips: export CGO_ENABLED=0
build-linux-mips: export GO111MODULE=on
build-linux-mips: export GOPROXY=$(MOD_PROXY_URL)
build-linux-mips:
go build -v --ldflags="-w -X main.Version=$(VERSION) -X main.Revision=$(REVISION)" \
-o bin/linux/mips64/chartmuseum cmd/chartmuseum/main.go # linux
sha256sum bin/linux/mips64/chartmuseum || shasum -a 256 bin/linux/mips64/chartmuseum


build-armv7: export GOOS=linux
build-armv7: export GOARCH=arm
build-armv7: export GOARM=7
Expand Down

0 comments on commit c0e6254

Please sign in to comment.