Skip to content

Commit

Permalink
Merge pull request #588 from niklr/linux_arm64
Browse files Browse the repository at this point in the history
feat: add linux arm64 build option
  • Loading branch information
viteshan authored Apr 20, 2022
2 parents 2eda1ba + cc99ca7 commit a28fab7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.PHONY: all clean
.PHONY: gvite-linux-amd64
.PHONY: gvite-linux-arm64
.PHONY: gvite-darwin
.PHONY: gvite-windows
.PHONY: build_version build
Expand Down Expand Up @@ -46,6 +47,15 @@ build_linux_amd64:
@ls -d $(BUILD_DIR)/gvite-$(VITE_VERSION)-linux/gvite
@echo "Build linux version done."

build_linux_arm64:
env GOOS=linux GO111MODULE=on GOARCH=arm64 go build -o $(BUILD_DIR)/gvite-$(VITE_VERSION)-linux-arm64/gvite $(MAIN)

@cp $(shell pwd)/conf/node_config.json $(BUILD_DIR)/gvite-$(VITE_VERSION)-linux-arm64/node_config.json
@cp $(shell pwd)/bin/bootstrap_linux $(BUILD_DIR)/gvite-$(VITE_VERSION)-linux-arm64/bootstrap

@ls -d $(BUILD_DIR)/gvite-$(VITE_VERSION)-linux-arm64/gvite
@echo "Build linux-arm64 version done."

build_darwin:
env GOOS=darwin GO111MODULE=on GOARCH=amd64 go build -o $(BUILD_DIR)/gvite-$(VITE_VERSION)-darwin/gvite $(MAIN)

Expand All @@ -66,11 +76,13 @@ gvite-darwin: build_version build_darwin

gvite-linux: build_version build_linux_amd64

gvite-linux-arm64: build_version build_linux_arm64

gvite-windows: build_version build_windows

gvite: build_version build

all: gvite-windows gvite-darwin gvite-linux
all: gvite-windows gvite-darwin gvite-linux gvite-linux-arm64

clean:
rm -r $(BUILD_ROOT_DIR)/

0 comments on commit a28fab7

Please sign in to comment.