update ci
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
Simon Vieille 2022-09-05 10:58:42 +02:00
parent bc2a4b3453
commit b8ad31e366
Signed by: deblan
GPG Key ID: 579388D585F70417
2 changed files with 15 additions and 4 deletions

View File

@ -8,6 +8,9 @@ pipeline:
image: golang:1.18 image: golang:1.18
commands: commands:
- make - make
- mkdir release
- tar cz release/build-amd64.tar.gz build/linux-amd64/
- tar cz release/build-arm64.tar.gz build/linux-arm64/
release: release:
image: plugins/gitea-release image: plugins/gitea-release
@ -16,6 +19,6 @@ pipeline:
from_secret: gitnet_api_key from_secret: gitnet_api_key
base_url: https://gitnet.fr base_url: https://gitnet.fr
note: note:
files: build/* files: release/*
when: when:
event: [tag] event: [tag]

View File

@ -1,8 +1,16 @@
all: linux-amd64 linux-arm64
.ONESHELL: .ONESHELL:
all: linux-amd64:
for i in blocks/*; do for i in blocks/*; do
go build -ldflags '-s -w' -v -o "build/$$(basename "$$i")" "$$i/main.go" GOARCH=amd64 GOOS=linux go build -ldflags '-s -w' -v -o "build/linux-amd64/$$(basename "$$i")" "$$i/main.go"
done
.ONESHELL:
linux-arm64:
for i in blocks/*; do
GOARCH=arm64 GOOS=linux go build -ldflags '-s -w' -v -o "build/linux-arm64/$$(basename "$$i")" "$$i/main.go"
done done
clean: clean:
rm build/* 2>/dev/null || true rm -fr build/* 2>/dev/null || true