Skip to content

Commit

Permalink
fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
mhewedy committed Apr 27, 2020
1 parent dee8039 commit 5994264
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@ jobs:
- name: Build
run: |
mkdir bin
GOOS=linux GOARCH=amd64 go build -ldflags "-s" -o bin/vermin && tar czf bin/vermin-${{ steps.get_version.outputs.VERSION }}.linux.tar.gz bin/vermin && rm -rf bin/vermin
GOOS=darwin GOARCH=amd64 go build -ldflags "-s" -o bin/vermin && tar czf bin/vermin-${{ steps.get_version.outputs.VERSION }}.darwin.tar.gz bin/vermin && rm -rf bin/vermin
sha256sum bin/vermin-${{ steps.get_version.outputs.VERSION }}.linux.tar.gz > bin/vermin-${{ steps.get_version.outputs.VERSION }}.linux.tar.gz.sha256sum
sha256sum bin/vermin-${{ steps.get_version.outputs.VERSION }}.darwin.tar.gz > bin/vermin-${{ steps.get_version.outputs.VERSION }}.darwin.tar.gz.sha256sum
GOOS=linux GOARCH=amd64 go build -ldflags "-s" -o bin/vermin && \
cd bin && tar czf vermin-${{ steps.get_version.outputs.VERSION }}.linux.tar.gz vermin \
&& rm -rf vermin && cd -
GOOS=darwin GOARCH=amd64 go build -ldflags "-s" -o bin/vermin && \
cd bin && tar czf vermin-${{ steps.get_version.outputs.VERSION }}.darwin.tar.gz vermin \
&& rm -rf vermin && cd -
cd bin
sha256sum vermin-${{ steps.get_version.outputs.VERSION }}.linux.tar.gz > vermin-${{ steps.get_version.outputs.VERSION }}.linux.tar.gz.sha256sum
sha256sum vermin-${{ steps.get_version.outputs.VERSION }}.darwin.tar.gz > vermin-${{ steps.get_version.outputs.VERSION }}.darwin.tar.gz.sha256sum
cd -
- uses: actions/upload-artifact@master
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit 5994264

Please sign in to comment.