Skip to content

Commit

Permalink
ci: static complie binary
Browse files Browse the repository at this point in the history
  • Loading branch information
chaunsin committed Nov 26, 2024
1 parent 5ee3fdf commit 88f8809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
run: |
mkdir -p output
xgo --targets=darwin-10.14/*,windows-6.1/*,linux/amd64,linux/arm64,linux/mips64,linux/mips64le,linux/ppc64le,linux/riscv64 \
--ldflags "-linkmode "external" -extldflags "-static" -s -w -X 'main.BuildTime=${{ env.BUILD_TIME }}' -X 'main.Version=${{github.ref_name}}' -X 'main.Commit=${{ env.COMMIT_HASH }}'" \
--ldflags "-extldflags "-static" -s -w -X 'main.BuildTime=${{ env.BUILD_TIME }}' -X 'main.Version=${{github.ref_name}}' -X 'main.Commit=${{ env.COMMIT_HASH }}'" \
-out output/ncmctl ./cmd/ncmctl/main.go
echo "Build output:"
tree ./output
Expand Down

0 comments on commit 88f8809

Please sign in to comment.