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