Skip to content

Commit

Permalink
Shrink binaries before making archives
Browse files Browse the repository at this point in the history
+ adds back 'shrink' target
+ ensures `upx` is available on macOS target (for ↑ to work)

Signed-off-by: jdwelch <jdwelch@puppet.com>

¯\_(ツ)_/¯

Signed-off-by: jdwelch <jdwelch@puppet.com>

¯\_(ツ)_/¯

Signed-off-by: jdwelch <jdwelch@puppet.com>
  • Loading branch information
jdwelch committed Dec 13, 2018
1 parent 3c9c497 commit ce99131
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ script: make
before_deploy:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y upx; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install upx; fi
- make dist-release
deploy:
provider: releases
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ $(GOPATH)/bin/protoc-gen-go:

PHONY+= shrink
shrink:
@echo "🔘 Shrinking binaries"
for f in build/*; do \
upx $$f; \
done;
Expand Down Expand Up @@ -119,7 +120,7 @@ vet:
@go vet ./...

PHONY+= dist-release
dist-release:
dist-release: shrink
@if [ "$(OS)" == "osx" ]; \
then \
echo "🔘 dist-release started for macOS"; \
Expand Down

0 comments on commit ce99131

Please sign in to comment.