mirror of
https://gitee.com/WuKongDev/WuKongIM.git
synced 2025-12-06 14:59:08 +08:00
feat: github action remove windows
This commit is contained in:
1
.github/workflows/go-ossf-slsa3-publish.yml
vendored
1
.github/workflows/go-ossf-slsa3-publish.yml
vendored
@@ -52,7 +52,6 @@ jobs:
|
|||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
- darwin
|
- darwin
|
||||||
- windows
|
|
||||||
arch:
|
arch:
|
||||||
- amd64
|
- amd64
|
||||||
- arm64
|
- arm64
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
# Version for this file.
|
|
||||||
version: 1
|
|
||||||
|
|
||||||
# (Optional) List of env variables used during compilation.
|
|
||||||
env:
|
|
||||||
- GO111MODULE=on
|
|
||||||
- CGO_ENABLED=0
|
|
||||||
|
|
||||||
# (Optional) Flags for the compiler.
|
|
||||||
flags:
|
|
||||||
- -trimpath
|
|
||||||
- -tags=netgo
|
|
||||||
|
|
||||||
# The OS to compile for. `GOOS` env variable will be set to this value.
|
|
||||||
goos: windows
|
|
||||||
|
|
||||||
# The architecture to compile for. `GOARCH` env variable will be set to this value.
|
|
||||||
goarch: amd64
|
|
||||||
|
|
||||||
# (Optional) Entrypoint to compile.
|
|
||||||
main: ./main.go
|
|
||||||
|
|
||||||
# (Optional) Working directory. (default: root of the project)
|
|
||||||
# dir: ./relative/path/to/dir
|
|
||||||
|
|
||||||
# Binary output name.
|
|
||||||
# {{ .Os }} will be replaced by goos field in the config file.
|
|
||||||
# {{ .Arch }} will be replaced by goarch field in the config file.
|
|
||||||
binary: wukongim-{{ .Os }}-{{ .Arch }}
|
|
||||||
|
|
||||||
# (Optional) ldflags generated dynamically in the workflow, and set as the `evaluated-envs` input variables in the workflow.
|
|
||||||
ldflags:
|
|
||||||
- "-X main.Version={{ .Env.VERSION }}"
|
|
||||||
- "-X main.Commit={{ .Env.COMMIT }}"
|
|
||||||
- "-X main.CommitDate={{ .Env.COMMIT_DATE }}"
|
|
||||||
- "-X main.TreeState={{ .Env.TREE_STATE }}"
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
# Version for this file.
|
|
||||||
version: 1
|
|
||||||
|
|
||||||
# (Optional) List of env variables used during compilation.
|
|
||||||
env:
|
|
||||||
- GO111MODULE=on
|
|
||||||
- CGO_ENABLED=0
|
|
||||||
|
|
||||||
# (Optional) Flags for the compiler.
|
|
||||||
flags:
|
|
||||||
- -trimpath
|
|
||||||
- -tags=netgo
|
|
||||||
|
|
||||||
# The OS to compile for. `GOOS` env variable will be set to this value.
|
|
||||||
goos: windows
|
|
||||||
|
|
||||||
# The architecture to compile for. `GOARCH` env variable will be set to this value.
|
|
||||||
goarch: arm64
|
|
||||||
|
|
||||||
# (Optional) Entrypoint to compile.
|
|
||||||
main: ./main.go
|
|
||||||
|
|
||||||
# (Optional) Working directory. (default: root of the project)
|
|
||||||
# dir: ./relative/path/to/dir
|
|
||||||
|
|
||||||
# Binary output name.
|
|
||||||
# {{ .Os }} will be replaced by goos field in the config file.
|
|
||||||
# {{ .Arch }} will be replaced by goarch field in the config file.
|
|
||||||
binary: wukongim-{{ .Os }}-{{ .Arch }}
|
|
||||||
|
|
||||||
# (Optional) ldflags generated dynamically in the workflow, and set as the `evaluated-envs` input variables in the workflow.
|
|
||||||
ldflags:
|
|
||||||
- "-X main.Version={{ .Env.VERSION }}"
|
|
||||||
- "-X main.Commit={{ .Env.COMMIT }}"
|
|
||||||
- "-X main.CommitDate={{ .Env.COMMIT_DATE }}"
|
|
||||||
- "-X main.TreeState={{ .Env.TREE_STATE }}"
|
|
||||||
Reference in New Issue
Block a user