From a5494c881144ab459007a30664a953b1576b4d4a Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Fri, 3 Apr 2020 13:38:21 +0100 Subject: [PATCH] Fine-tuning UPX and CircleCI configuration. --- .circleci/config.yml | 2 +- Makefile | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a42d231..e623867 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: diff --git a/Makefile b/Makefile index e59f525..73f42aa 100644 --- a/Makefile +++ b/Makefile @@ -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 \ No newline at end of file