add builds for other architectures
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
453d4097f7
commit
6f9b5b48db
|
|
@ -6,7 +6,7 @@ steps:
|
||||||
- name: build and test
|
- name: build and test
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go build
|
- make all
|
||||||
- go test
|
- go test
|
||||||
- name: gitea_release
|
- name: gitea_release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
|
|
@ -15,7 +15,7 @@ steps:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
base_url: https://git.kwolek.io
|
base_url: https://git.kwolek.io
|
||||||
files:
|
files:
|
||||||
- autoupdate
|
- dist/autoupdate*
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: all linux darwin freebsd clean
|
||||||
|
all: linux darwin freebsd
|
||||||
|
|
||||||
|
linux: $(addprefix dist/autoupdate.linux.,amd64 arm64)
|
||||||
|
darwin: $(addprefix dist/autoupdate.darwin.,arm64 amd64)
|
||||||
|
freebsd: $(addprefix dist/autoupdate.freebsd.,amd64 arm)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf dist
|
||||||
|
|
||||||
|
dist/autoupdate.%: *.go go.mod go.sum
|
||||||
|
$(eval platform := $(subst ., ,$@))
|
||||||
|
$(eval os := $(word 2,$(platform)))
|
||||||
|
$(eval arch := $(word 3,$(platform)))
|
||||||
|
GOOS=$(os) GOARCH=$(arch) go build -o $@
|
||||||
|
|
||||||
Loading…
Reference in New Issue