Skip to content

Commit

Permalink
chore: fix an issue with upx and mac where the process gets killed im…
Browse files Browse the repository at this point in the history
…mediately (#441)

Issue seems to be with v3.94 of upx that comes installed by
default in ubuntu-latest images of Github actions.

A number of very similar issues:
upx/upx#450
upx/upx#222

Signed-off-by: Harikrishnan Balagopal <[email protected]>
  • Loading branch information
HarikrishnanBalagopal authored Mar 3, 2021
1 parent 64b2183 commit 0373fc9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: ${{ steps.info.outputs.go_version }}
- name: install upx to compress binaries
run: sudo apt-get install -y upx
- run: make ci
- run: make test-coverage
- name: upload coverage
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/prbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: ${{ steps.info.outputs.go_version }}
- name: install upx to compress binaries
run: sudo apt-get install -y upx
- run: make ci
- run: make test-coverage
- name: upload coverage
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: ${{ steps.info.outputs.go_version }}
- name: install upx to compress binaries
run: sudo apt-get install -y upx

- name: install upx ^3.96 to compress binaries. The default 3.94 version has some issues with MacOS.
run: brew install upx
- run: ls -al "$(which upx)"
- run: upx --version

- run: make ci
- run: make test-coverage
- name: upload coverage
Expand Down Expand Up @@ -167,8 +171,12 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: ${{ steps.info.outputs.go_version }}
- name: install upx to compress binaries
run: sudo apt-get install -y upx

- name: install upx ^3.96 to compress binaries. The default 3.94 version has some issues with MacOS.
run: brew install upx
- run: ls -al "$(which upx)"
- run: upx --version

- run: VERSION='${{ github.event.inputs.tag }}' make dist
- name: upload release assets
uses: HarikrishnanBalagopal/upload-release-action@v3
Expand Down

0 comments on commit 0373fc9

Please sign in to comment.