Skip to content

Commit

Permalink
chore: release stataically-built binary with _static postfix (#291)
Browse files Browse the repository at this point in the history
* release stataically-built binary with _static postfix

* use dir stack instead of cd

* use different dir for static binary

* fix static build action
  • Loading branch information
Vritra4 authored Oct 28, 2024
1 parent 342a327 commit c8a6288
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build-linux-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,31 @@ jobs:
export GOARCH=${GOARCH}
export GOOS=${GOOS}
make build-linux-with-shared-library
cd ./build
pushd build
mkdir -p initia_${VERSION}
mv libmovevm.so initia_${VERSION}/libmovevm.${ARCH_NAME}.so
mv libcompiler.so initia_${VERSION}/libcompiler.${ARCH_NAME}.so
mv initiad initia_${VERSION}/
tar -czvf initia_${VERSION}_Linux_${ARCH_NAME}.tar.gz initia_${VERSION}
popd
- name: Static Build for Linux AMD64
run: |
export GOARCH=${GOARCH}
export GOOS=${GOOS}
make build-linux
pushd build
mkdir -p initia_${VERSION}_static
mv initiad initia_${VERSION}_static/
tar -czvf initia_${VERSION}_Linux_${ARCH_NAME}_static.tar.gz initia_${VERSION}_static
popd
- 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 }}

0 comments on commit c8a6288

Please sign in to comment.