Skip to content

Commit

Permalink
Merge pull request #500 from srl-labs/upx
Browse files Browse the repository at this point in the history
Upx compression of binaries
  • Loading branch information
hellt committed Jul 8, 2021
2 parents a3db4dd + 8af7855 commit c5fa3ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: ${{ env.GOVER }}
- name: Install upx
run: |
sudo apt update && sudo apt install -y libucl1
curl -L http://archive.ubuntu.com/ubuntu/pool/universe/u/upx-ucl/upx-ucl_3.96-2_amd64.deb -o /tmp/upx.deb
sudo dpkg -i /tmp/upx.deb
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand All @@ -171,7 +176,7 @@ jobs:

publish-docs:
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags/v') && startsWith(github.ref, 'refs/tags/v0.0.0') != true
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-') != true
needs: build-and-release
steps:
- name: Checkout
Expand Down
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ builds:
- linux
goarch:
- amd64
hooks:
post: upx "{{ .Path }}"
archives:
- replacements:
linux: Linux
Expand Down

0 comments on commit c5fa3ec

Please sign in to comment.