Fine-tuning UPX and CircleCI configuration.

This commit is contained in:
Gabriel Simmer 2020-04-03 13:38:21 +01:00
parent 750b85c261
commit a5494c8811
No known key found for this signature in database
GPG key ID: 33BA4D83B160A0A9
2 changed files with 7 additions and 4 deletions

View file

@ -25,7 +25,7 @@ jobs:
- run:
command: make dist
- store_artifacts:
path: /go/src/github.com/gmemstr/build
path: build
- save_cache:
key: go-mod-{{ checksum "go.sum" }}-v1
paths:

View file

@ -8,11 +8,11 @@ pi:
small:
go build -ldflags="-s -w"
upx --brute nas
upx --brute nas -9 --no-progress
small_pi:
env GOOS=linux GOARCH=arm GOARM=5 go build -o nas-arm -ldflags="-s -w"
upx --brute nas-arm
upx --brute nas-arm -9 --no-progress
run:
go run webserver.go
@ -20,6 +20,9 @@ run:
test:
go test ./... -cover
dist: small small_pi
dist: clean small small_pi
mkdir build
mv nas* build
clean:
rm -rf build