Skip to content

Commit 57c67fe

Browse files
committed
fix: cicd releaser
1 parent 20b70d0 commit 57c67fe

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/gorelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
goreleaser:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-22.04
1212
steps:
1313
-
1414
name: Checkout

.goreleaser.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,17 @@ builds:
2525
ldflags: "-s -w -X 'github.com/chainreactors/spray/cmd.ver=={{ .Tag }}'"
2626
flags:
2727
- -trimpath
28-
- -tags=forceposix
2928
asmflags:
3029
- all=-trimpath={{.Env.GOPATH}}
3130
gcflags:
3231
- all=-trimpath={{.Env.GOPATH}}
3332
no_unique_dist_dir: true
33+
env:
34+
- CGO_ENABLED=0
35+
tags:
36+
- forceposix
37+
- osusergo
38+
- netgo
3439

3540
upx:
3641
-

0 commit comments

Comments
 (0)