diff --git a/.github/workflows/gorelease.yml b/.github/workflows/gorelease.yml index 848ddf4..03a55ad 100644 --- a/.github/workflows/gorelease.yml +++ b/.github/workflows/gorelease.yml @@ -8,7 +8,7 @@ on: jobs: goreleaser: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Checkout diff --git a/.goreleaser.yml b/.goreleaser.yml index 36ed09b..a678ae0 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -25,12 +25,17 @@ builds: ldflags: "-s -w -X 'github.com/chainreactors/spray/cmd.ver=={{ .Tag }}'" flags: - -trimpath - - -tags=forceposix asmflags: - all=-trimpath={{.Env.GOPATH}} gcflags: - all=-trimpath={{.Env.GOPATH}} no_unique_dist_dir: true + env: + - CGO_ENABLED=0 + tags: + - forceposix + - osusergo + - netgo upx: -