From e93d58d4986f5fcedded2110ab59e9d87394ddb3 Mon Sep 17 00:00:00 2001 From: naiba Date: Wed, 26 May 2021 16:33:32 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20=E7=A7=BB=E9=99=A4=20upx?= =?UTF-8?q?=EF=BC=8C=E7=BC=96=E8=AF=91=20arm64/mips=20=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/agent.yml | 7 ------- .goreleaser.yml | 4 ---- 2 files changed, 11 deletions(-) diff --git a/.github/workflows/agent.yml b/.github/workflows/agent.yml index 6749fa6..d738124 100644 --- a/.github/workflows/agent.yml +++ b/.github/workflows/agent.yml @@ -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/') diff --git a/.goreleaser.yml b/.goreleaser.yml index fc6ee0a..0da33d1 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -24,10 +24,6 @@ builds: goarch: arm64 main: ./cmd/agent binary: nezha-agent - # 为路由器、开发板缩小二进制体积 - hooks: - post: - - upx --best "{{.Path}}" checksum: name_template: "checksums.txt" snapshot: