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: