Skip to content

Commit 12e946c

Browse files
committed
添加多平台构建
1 parent 1b33d56 commit 12e946c

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.slsa-goreleaser.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@ flags:
1212
- -tags=netgo
1313

1414
# The OS to compile for. `GOOS` env variable will be set to this value.
15-
goos: linux
15+
goos:
16+
- windows
17+
- linux
18+
- darwin
1619

1720
# The architecture to compile for. `GOARCH` env variable will be set to this value.
18-
goarch: amd64
21+
goarch:
22+
- amd64
23+
- arm64
1924

2025
# (Optional) Entrypoint to compile.
2126
main: ./cmd/lcode-hub
@@ -26,7 +31,7 @@ main: ./cmd/lcode-hub
2631
# Binary output name.
2732
# {{ .Os }} will be replaced by goos field in the config file.
2833
# {{ .Arch }} will be replaced by goarch field in the config file.
29-
binary: binary-{{ .Os }}-{{ .Arch }}
34+
binary: lcode-hub-{{ .Os }}-{{ .Arch }}
3035

3136
# (Optional) ldflags generated dynamically in the workflow, and set as the `evaluated-envs` input variables in the workflow.
3237
ldflags:

0 commit comments

Comments
 (0)