Skip to content

Commit

Permalink
fix windows release binary
Browse files Browse the repository at this point in the history
  • Loading branch information
wweir committed Sep 9, 2021
1 parent 133684e commit dabcf99
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,30 @@ jobs:
run: |
make build GO='GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go'
tar czvf sower-linux-amd64.tar.gz sower sowerd
rm -f sower sowerd
make clean
make build GO='GOOS=linux GOARCH=arm CGO_ENABLED=0 go'
tar czvf sower-linux-arm.tar.gz sower sowerd
rm -f sower sowerd
make clean
make build GO='GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go'
tar czvf sower-linux-arm64.tar.gz sower sowerd
rm -f sower sowerd
make clean
make build GO='GOOS=linux GOARCH=mips CGO_ENABLED=0 go'
tar czvf sower-linux-mips.tar.gz sower sowerd
rm -f sower sowerd
make clean
make build GO='GOOS=linux GOARCH=mipsle CGO_ENABLED=0 go'
tar czvf sower-linux-mipsle.tar.gz sower sowerd
rm -f sower sowerd
make clean
make build GO='GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go'
tar czvf sower-darwin-amd64.tar.gz sower sowerd
rm -f sower sowerd
make clean
make build GO='GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go'
tar czvf sower-darwin-arm64.tar.gz sower sowerd
rm -f sower sowerd
make clean
make build GO='GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go'
tar czvf sower-windows-amd64.tar.gz sower sowerd
rm -f sower sowerd
tar czvf sower-windows-amd64.tar.gz sower.exe sowerd.exe
make clean
- uses: ncipollo/release-action@v1
with:
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ sowerd:
-X main.version=$(shell git describe --tags --always) \
-X main.date=$(shell date +%Y-%m-%d)" \
-o sowerd ./cmd/sowerd

clean:
rm -f sower sowerd sower.exe sowerd.exe

0 comments on commit dabcf99

Please sign in to comment.