Skip to content

Commit

Permalink
Trying to make build faster (only build linux/386 and amd64)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien B authored and Sébastien B committed Jun 26, 2019
1 parent 9219f05 commit 5268b5c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,22 @@ builds:
- env:
- CGO_ENABLED=0

goos:
- linux

goarch:
- 386
- amd64

hooks:
post: /bin/bash upx.sh

archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64

checksum:
name_template: "checksums.txt"
snapshot:
Expand Down
4 changes: 2 additions & 2 deletions upx.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
set -ex

for binary in $(dist/speedtest-go*/speedtest-go*)
for binary in $(ls dist/speedtest-go*/speedtest-go*)
do
upx $binary &
upx --brute $binary &
done

wait

0 comments on commit 5268b5c

Please sign in to comment.