From 9dc39dbe539a1aed1e69cb51686c78ffeb6f55a3 Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Sat, 26 Feb 2022 00:41:32 -0500 Subject: [PATCH] Updated Woodpecker config to do better release binaries --- .woodpecker.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 2a341d2..8ded20a 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -5,6 +5,16 @@ pipeline: - go get - go build + build_release: + image: golang:1.16 + commands: + - go get + - GOOS=windows GOARCH=amd64 go build -o dist/bgbench-windows-x86_64-${CI_COMMIT_TAG}.exe + - GOOS=linux GOARCH=amd64 go build -o dist/bench-linux-x86_64-${CI_COMMIT_TAG} + - GOOS=darwin GOARCH=amd64 go build -o dist/bench-macos-x86_64-${CI_COMMIT_TAG} + when: + event: tag + gitea_release: image: plugins/gitea-release settings: @@ -12,7 +22,7 @@ pipeline: from_secret: gitea_api_key base_url: https://git.metaunix.net files: - - hardware-tests + - dist/* title: "${CI_COMMIT_TAG}" when: event: tag