Skip to content

Commit

Permalink
合并编译的脚本
Browse files Browse the repository at this point in the history
Signed-off-by: allan716 <525223688@qq.com>
  • Loading branch information
allanpk716 committed Jun 27, 2023
1 parent e3b75ea commit f07f625
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 103 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ jobs:
distribution: goreleaser
version: latest
args: release -f .goreleaser_client_youtube.yml --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release -f .goreleaser_client.yml --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
32 changes: 0 additions & 32 deletions .github/workflows/release_client_base.yml

This file was deleted.

50 changes: 46 additions & 4 deletions .goreleaser_client_youtube.yml → .goreleaser_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,48 @@ before:
hooks:
- go mod tidy
builds:
- id: linux-amd64-build
# ----------------------------------------
# base
- id: linux-amd64-build-base
goos:
- linux
goarch:
- amd64
main: ./cmd/client_base/main.go
ldflags:
- -s -w --extldflags "-static -fpic" -X main.AppVersion=v{{ .Version }}

- id: linux-armv7-build-base
goos:
- linux
goarch:
- arm
goarm:
- 7
main: ./cmd/client_base/main.go
ldflags:
- -s -w --extldflags "-static -fpic" -X main.AppVersion=v{{ .Version }}

- id: linux-arm64-build-base
goos:
- linux
goarch:
- arm64
main: ./cmd/client_base/main.go
ldflags:
- -s -w --extldflags "-static -fpic" -X main.AppVersion=v{{ .Version }}

- id: windows-build-base
goos:
- windows
goarch:
- amd64
main: ./cmd/client_base/main.go
ldflags:
- -s -w --extldflags "-static -fpic" -X main.AppVersion=v{{ .Version }}
# ----------------------------------------
# youtube
- id: linux-amd64-build-youtube
goos:
- linux
goarch:
Expand All @@ -16,7 +57,7 @@ builds:
ldflags:
- -s -w --extldflags "-static -fpic" -X main.AppVersion=v{{ .Version }}

- id: linux-armv7-build
- id: linux-armv7-build-youtube
goos:
- linux
goarch:
Expand All @@ -27,7 +68,7 @@ builds:
ldflags:
- -s -w --extldflags "-static -fpic" -X main.AppVersion=v{{ .Version }}

- id: linux-arm64-build
- id: linux-arm64-build-youtube
goos:
- linux
goarch:
Expand All @@ -36,7 +77,7 @@ builds:
ldflags:
- -s -w --extldflags "-static -fpic" -X main.AppVersion=v{{ .Version }}

- id: windows-build
- id: windows-build-youtube
goos:
- windows
goarch:
Expand Down Expand Up @@ -65,3 +106,4 @@ changelog:
- "^test:"
- "^TestData:"
- "^TestCode:"
- "^assets:"
67 changes: 0 additions & 67 deletions .goreleaser_client_base.yml

This file was deleted.

0 comments on commit f07f625

Please sign in to comment.