mirror of
https://github.com/chainreactors/spray.git
synced 2025-06-20 18:00:37 +00:00
fix: cicd releaser
This commit is contained in:
parent
20b70d0dcd
commit
57c67fe36a
2
.github/workflows/gorelease.yml
vendored
2
.github/workflows/gorelease.yml
vendored
@ -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
|
||||||
|
@ -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:
|
||||||
-
|
-
|
||||||
|
Loading…
x
Reference in New Issue
Block a user