Skip to content

Commit

Permalink
ci: Add CGO_ENABLED=1
Browse files Browse the repository at this point in the history
  • Loading branch information
xbpk3t committed May 12, 2024
1 parent c1976a7 commit 2bd8a26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release_auto_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
- name: Build and pack
run: |
# build package
GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w -X github.com/91go/docs-alfred/cmd.EnabledAutoUpdate=true" -o exe_amd64
GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w -X github.com/91go/docs-alfred/cmd.EnabledAutoUpdate=true" -o exe_arm64
GOOS=darwin GOARCH=amd64 CGO_ENABLED=1 go build -ldflags "-s -w -X github.com/91go/docs-alfred/cmd.EnabledAutoUpdate=true" -o exe_amd64
GOOS=darwin GOARCH=arm64 CGO_ENABLED=1 go build -ldflags "-s -w -X github.com/91go/docs-alfred/cmd.EnabledAutoUpdate=true" -o exe_arm64
lipo -create -output .workflow/exe exe_amd64 exe_arm64
rm exe_amd64
rm exe_arm64
Expand Down

0 comments on commit 2bd8a26

Please sign in to comment.