Add builds for arm/arm64
This commit is contained in:
parent
17595f6333
commit
ec1b191312
2 changed files with 12 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,5 @@
|
||||||
mystrom-exporter
|
mystrom-exporter
|
||||||
|
output/*
|
||||||
|
|
||||||
# Created by https://www.toptal.com/developers/gitignore/api/osx,intellij+all,windows
|
# Created by https://www.toptal.com/developers/gitignore/api/osx,intellij+all,windows
|
||||||
# Edit at https://www.toptal.com/developers/gitignore?templates=osx,intellij+all,windows
|
# Edit at https://www.toptal.com/developers/gitignore?templates=osx,intellij+all,windows
|
||||||
|
|
13
Makefile
13
Makefile
|
@ -1,4 +1,13 @@
|
||||||
|
.PHONY: clean run
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
GOOS=linux GOARCH=amd64 go build
|
GOOS=linux GOARCH=amd64 go build -o output/mystrom-exporter_linux-amd64
|
||||||
mac:
|
mac:
|
||||||
GOOS=darwin GOARCH=amd64 go build
|
GOOS=darwin GOARCH=amd64 go build -o output/mystrom-exporter_mac-amd64
|
||||||
|
arm64:
|
||||||
|
GOOS=linux GOARCH=arm64 go build -o output/mystrom-exporter_linux-arm64
|
||||||
|
arm:
|
||||||
|
GOOS=linux GOARCH=arm go build -o output/mystrom-exporter_linux-arm
|
||||||
|
|
||||||
|
|
||||||
|
all: linux mac arm64 arm
|
Loading…
Reference in a new issue