Skip to content

Commit

Permalink
fix: ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
李昌 committed Dec 27, 2024
1 parent 4d75c98 commit 04f1c01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/.goreleaser-for-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ builds:
binary: pm
ldflags:
- -w -s
- -extldflags "-static"
tags:
- release
- embed_frontend
env:
- CGO_ENABLED=1
- CGO_ENABLED=0
goos:
- darwin
goarch:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ jobs:
run: sudo apt-get install -y gcc-aarch64-linux-gnu

- name: Set up git tag
id: get_tag
uses: devops-actions/[email protected]
with:
strip_v: false

- name: Replace __VERSION__ in cmds/root.go
run: sed -i "s/__VERSION__/${{ steps.get_tag.outputs.tag }}/" cmds/root.go
run: sed -i "s/__VERSION__/${{steps.get_tag.outputs.tag}}/" cmds/root.go

- name: Set up Go
uses: actions/setup-go@v4
Expand Down Expand Up @@ -58,12 +59,13 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: 1.23.1 # 指定 Go 版本

- name: Set up git tag
id: get_tag
uses: devops-actions/[email protected]
with:
strip_v: false

- name: Replace __VERSION__ in cmds/root.go
run: sed -i '' "s/__VERSION__/${{ steps.get_tag.outputs.tag }}/" cmds/root.go

Expand Down

0 comments on commit 04f1c01

Please sign in to comment.