diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index f7e805d7..d2fd4cce 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -17,14 +17,6 @@ jobs: id: go - name: Check out code into the Go module directory uses: actions/checkout@v3.0.2 - - name: Upgrade upx - run: | - # try to fix https://github.com/jenkins-zh/jenkins-cli/issues/493 - wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz - tar xvf upx-3.96-amd64_linux.tar.xz - upx-3.96-amd64_linux/upx -V - sudo mv upx-3.96-amd64_linux/upx $(which upx) - upx -V - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2.7.0 with: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fb11245d..876038e2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,16 +17,6 @@ jobs: uses: actions/setup-go@v3.2.1 with: go-version: 1.16.x - - name: Upgrade upx - run: | - # try to fix https://github.com/jenkins-zh/jenkins-cli/issues/493 - wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz - tar xvf upx-3.96-amd64_linux.tar.xz - upx-3.96-amd64_linux/upx -V - sudo mv upx-3.96-amd64_linux/upx $(which upx) - rm -rf upx-3.96-amd64_linux - rm -rf xvf upx-3.96-amd64_linux.tar.xz - upx -V - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2.7.0 with: diff --git a/.goreleaser.yml b/.goreleaser.yml index 7ed8b393..257f0d48 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -18,9 +18,6 @@ builds: goarch: arm64 - goos: darwin goarch: arm - hooks: - post: - - upx "{{ .Path }}" ldflags: - -X github.com/linuxsuren/cobra-extension/version.version={{.Version}} - -X github.com/linuxsuren/cobra-extension/version.commit={{.ShortCommit}}