Skip to content

Commit

Permalink
UTILS: Add build support for arm
Browse files Browse the repository at this point in the history
  • Loading branch information
Cian911 committed Dec 15, 2021
1 parent 0a4bc28 commit 3968b78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: build run
.PHONY: build build-arm run
.PHONY: test-all test-watcher test-event test-utils

VERSION := test-build
Expand All @@ -10,6 +10,10 @@ build:
-ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD} -X main.BuildTime=${BUILD_TIME}" \
-o ./bin/switchboard ./cmd

build-arm:
@GOOS=linux GOARCH=arm GOARM=5 go build \
-ldflags "-X main.Version=${VERSION} -X main.Build=${BUILD} -X main.BuildTime=${BUILD_TIME}" \
-o ./bin/switchboard ./cmd
run:
@go run ./cmd/main.go

Expand Down

0 comments on commit 3968b78

Please sign in to comment.