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: - run:
command: make dist command: make dist
- store_artifacts: - store_artifacts:
path: /go/src/github.com/gmemstr/build path: build
- save_cache: - save_cache:
key: go-mod-{{ checksum "go.sum" }}-v1 key: go-mod-{{ checksum "go.sum" }}-v1
paths: paths:

View file

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