From e4c445261d04b93151bfa3ded3a583bf34d20ec2 Mon Sep 17 00:00:00 2001 From: Vritra4 Date: Mon, 28 Oct 2024 17:22:27 +0900 Subject: [PATCH] release stataically-built binary with _static postfix --- .github/workflows/build-linux-amd64.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build-linux-amd64.yml b/.github/workflows/build-linux-amd64.yml index 8125fa8c..83633d4e 100644 --- a/.github/workflows/build-linux-amd64.yml +++ b/.github/workflows/build-linux-amd64.yml @@ -44,11 +44,22 @@ jobs: mv initiad initia_${VERSION}/ tar -czvf initia_${VERSION}_Linux_${ARCH_NAME}.tar.gz initia_${VERSION} + - name: Static Build for Linux AMD64 + run: | + export GOARCH=${GOARCH} + export GOOS=${GOOS} + make build-linux + cd ./build + mkdir -p initia_${VERSION} + mv initiad initia_${VERSION}/ + tar -czvf initia_${VERSION}_Linux_${ARCH_NAME}_static.tar.gz initia_${VERSION} + - name: Release uses: softprops/action-gh-release@v2 with: files: | ./build/initia_${{ env.VERSION }}_Linux_${{ env.ARCH_NAME }}.tar.gz + ./build/initia_${{ env.VERSION }}_Linux_${{ env.ARCH_NAME }}_static.tar.gz env: Version: ${{ env.VERSION }} ARCH_NAME: ${{ env.ARCH_NAME }}