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

chore: improve release binary #177

Merged
merged 1 commit into from
Jul 16, 2024
Merged

chore: improve release binary #177

merged 1 commit into from
Jul 16, 2024

Conversation

chenrui333
Copy link
Contributor

improve the release binary with linker flags -s -w, would shrink the binary by 1/3

$ go build -o frizbee_normal

$ ls -lh frizbee_normal
-rwxr-xr-x  1 rui  staff    18M Jul 15 14:10 frizbee_normal

$ go build -ldflags="-s -w" -o frizbee_stripped

$ ls -lh frizbee_stripped
-rwxr-xr-x  1 rui  staff    12M Jul 15 14:11 frizbee_stripped

@coveralls
Copy link

Coverage Status

coverage: 52.747%. remained the same
when pulling dcb86d9 on chenrui333:opt-release-binary
into 0c74f2d on stacklok:main.

@JAORMX JAORMX merged commit de90b5b into stacklok:main Jul 16, 2024
10 checks passed
@chenrui333 chenrui333 deleted the opt-release-binary branch July 18, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants