Skip to content

Commit

Permalink
modified gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
gmeghnag committed Aug 12, 2024
1 parent 9c31a94 commit 0c40ca6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
BINARY_NAME=$( echo ${GITHUB_REPOSITORY} | egrep -io "[^/]+$")
echo "BINARY_NAME=$BINARY_NAME" >> $GITHUB_ENV
HASH=$(git log -n1 --pretty=format:%h)
echo ${TAG} ${HASH} \
&& env GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -o ${BINARY_NAME} \
env GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -o ${BINARY_NAME} \
&& cp ${BINARY_NAME} ${BINARY_NAME}_Linux_x86_64 && tar -cvzf ${BINARY_NAME}_Linux_x86_64.tar.gz ${BINARY_NAME} && rm -rf ${BINARY_NAME} \
&& env GOOS=linux CGO_ENABLED=0 GOARCH=arm64 go build -o ${BINARY_NAME} \
&& tar -cvzf ${BINARY_NAME}_Linux_arm64.tar.gz ${BINARY_NAME} && cp ${BINARY_NAME}_Linux_arm64.tar.gz ${BINARY_NAME}_Linux_aarch64.tar.gz && rm -rf ${BINARY_NAME} \
Expand Down

0 comments on commit 0c40ca6

Please sign in to comment.