Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: minimize binary size #98

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
releases:
name: Release Go Binary
runs-on: ubuntu-latest
env:
CGO_ENABLED: "0"
strategy:
matrix:
goos: [linux, windows, darwin]
Expand All @@ -18,7 +20,7 @@ jobs:
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
bash ./scripts/set-version.sh "${{ github.event.release.tag_name }}"
- uses: wangyoucao577/go-release-action@v1
Expand All @@ -31,3 +33,7 @@ jobs:
extra_files: LICENSE README.md
release_tag: ${{ github.event.release.tag_name }}
overwrite: true
md5sum: false
sha256sum: true
build_flags: -trimpath
ldflags: '-s -w -buildid='
Loading