fix: cicd releaser

This commit is contained in:
M09Ic 2025-06-05 13:59:13 +08:00
parent 20b70d0dcd
commit 57c67fe36a
2 changed files with 7 additions and 2 deletions

View File

@ -8,7 +8,7 @@ on:
jobs: jobs:
goreleaser: goreleaser:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
steps: steps:
- -
name: Checkout name: Checkout

View File

@ -25,12 +25,17 @@ builds:
ldflags: "-s -w -X 'github.com/chainreactors/spray/cmd.ver=={{ .Tag }}'" ldflags: "-s -w -X 'github.com/chainreactors/spray/cmd.ver=={{ .Tag }}'"
flags: flags:
- -trimpath - -trimpath
- -tags=forceposix
asmflags: asmflags:
- all=-trimpath={{.Env.GOPATH}} - all=-trimpath={{.Env.GOPATH}}
gcflags: gcflags:
- all=-trimpath={{.Env.GOPATH}} - all=-trimpath={{.Env.GOPATH}}
no_unique_dist_dir: true no_unique_dist_dir: true
env:
- CGO_ENABLED=0
tags:
- forceposix
- osusergo
- netgo
upx: upx:
- -