Skip to content

Commit

Permalink
Add linux arm64 architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Jan 9, 2021
1 parent cc6716b commit bf34849
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@

dist/

inotify-proxy

inotify-proxy.yaml
inotify-proxy-linux-*
inotify-proxy.yaml
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ builds:
goarch:
- 386
- amd64
- arm64
ldflags:
- -s -w -X main.Version={{ .Env.GITHUB_REF_SLUG }}
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ LDFLAGS="-ldflags=-s -w -X 'main.Version=dev-linux'"
format:
go fmt ./...

linux:
GOOS=linux GOARCH=amd64 go build -o inotify-proxy $(LDFLAGS) inotify-proxy.go
build-linux-amd64:
GOOS=linux GOARCH=amd64 go build -o inotify-proxy-linux-amd64 $(LDFLAGS) inotify-proxy.go

build-linux-arm64:
GOOS=linux GOARCH=amd64 go build -o inotify-proxy-linux-arm64 $(LDFLAGS) inotify-proxy.go

test:
GOOS=linux GOARCH=amd64 go test -v ./...
go test -v ./...

all: format test linux
build: build-linux-amd64 build-linux-arm64
all: format test build

0 comments on commit bf34849

Please sign in to comment.