Skip to content

Commit

Permalink
Merge pull request #62 from hmrc/linux-arm
Browse files Browse the repository at this point in the history
Add support for linux on ARM64 architecture
  • Loading branch information
RikSherman authored Apr 6, 2023
2 parents 8bd5bdb + 8dd1d89 commit ebbc498
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))

BINARY := sm2
VERSION := 1.0.6
VERSION := 1.0.7
BUILD := `git rev-parse HEAD`

# Setup linker flags option for build that interoperate with variable names in src code
Expand All @@ -26,6 +26,7 @@ build:
build_all:
@echo building all versions...
$(shell export CGO_ENABLED=0; export GOOS=linux; export GOARCH=amd64; go build $(LDFLAGS) -o build/$(BINARY)-$(VERSION)-linux-intel/$(BINARY))
$(shell export CGO_ENABLED=0; export GOOS=linux; export GOARCH=arm64; go build $(LDFLAGS) -o build/$(BINARY)-$(VERSION)-linux-arm64/$(BINARY))
$(shell export CGO_ENABLED=0; export GOOS=darwin; export GOARCH=amd64; go build $(LDFLAGS) -o build/$(BINARY)-$(VERSION)-apple-intel/$(BINARY))
$(shell export CGO_ENABLED=0; export GOOS=darwin; export GOARCH=arm64; go build $(LDFLAGS) -o build/$(BINARY)-$(VERSION)-apple-arm64/$(BINARY))

Expand Down

0 comments on commit ebbc498

Please sign in to comment.