🚸 移除 upx,编译 arm64/mips 存在问题

This commit is contained in:
naiba 2021-05-26 16:33:32 +08:00
parent 7eeacf7817
commit e93d58d498
2 changed files with 0 additions and 11 deletions

View File

@ -10,13 +10,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Download UPX
run: |
wget https://github.com/upx/upx/releases/download/v3.95/upx-3.95-amd64_linux.tar.xz
tar --strip-components=1 -xf upx-3.95-amd64_linux.tar.xz && sudo mv upx /usr/bin/
git reset --hard
git clean -f -d
upx --version
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
if: startsWith(github.ref, 'refs/tags/')

View File

@ -24,10 +24,6 @@ builds:
goarch: arm64
main: ./cmd/agent
binary: nezha-agent
# 为路由器、开发板缩小二进制体积
hooks:
post:
- upx --best "{{.Path}}"
checksum:
name_template: "checksums.txt"
snapshot: