mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 20:58:14 -05:00
🚸 移除 upx,编译 arm64/mips 存在问题
This commit is contained in:
parent
7eeacf7817
commit
e93d58d498
7
.github/workflows/agent.yml
vendored
7
.github/workflows/agent.yml
vendored
@ -10,13 +10,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- 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
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v2
|
uses: goreleaser/goreleaser-action@v2
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
@ -24,10 +24,6 @@ builds:
|
|||||||
goarch: arm64
|
goarch: arm64
|
||||||
main: ./cmd/agent
|
main: ./cmd/agent
|
||||||
binary: nezha-agent
|
binary: nezha-agent
|
||||||
# 为路由器、开发板缩小二进制体积
|
|
||||||
hooks:
|
|
||||||
post:
|
|
||||||
- upx --best "{{.Path}}"
|
|
||||||
checksum:
|
checksum:
|
||||||
name_template: "checksums.txt"
|
name_template: "checksums.txt"
|
||||||
snapshot:
|
snapshot:
|
||||||
|
Loading…
Reference in New Issue
Block a user