From cb9c39b62dbd2470270aefc23b85a9350bc68f40 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Sat, 20 Apr 2024 15:00:24 +0300 Subject: [PATCH] Update gothub.yml --- .github/workflows/gothub.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gothub.yml b/.github/workflows/gothub.yml index 2a9c35a..c50762f 100644 --- a/.github/workflows/gothub.yml +++ b/.github/workflows/gothub.yml @@ -17,10 +17,13 @@ jobs: git clone https://codeberg.org/gothub/gothub.git cd gothub/ git checkout master + GOARCH=amd64 GOOS=linux go build -o gothub_linux_x86_64 -ldflags="-X codeberg.org/gothub/gothubs/utils.Branch=$(git rev-parse --abbrev-ref HEAD)" - mv gothub_linux_x86_64 ../../ + mv gothub_linux_x86_64 ../ + GOARCH=amd64 GOOS=linux go build -o gothub_windows_x86_64.exe -ldflags="-X codeberg.org/gothub/gothubs/utils.Branch=$(git rev-parse --abbrev-ref HEAD)" - mv gothub_windows_x86_64.exe ../../ + mv gothub_windows_x86_64.exe ../ + cd ../../ tar -czvf gothub_linux_x86_64.tar.gz gothub/gothub_linux_x86_64 zip gothub_windows_x86_64.zip gothub/gothub_windows_x86_64.exe