Skip to content

Commit

Permalink
build: add -ldflags to build command
Browse files Browse the repository at this point in the history
  • Loading branch information
kareemmahlees committed Feb 28, 2024
1 parent fd07968 commit ccb201b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ jobs:
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
binary_name: "meta-x"
md5sum: false
ldflags: "-w -s"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build:
@go build -o bin/
@go build -o bin/ -ldflags "-w -s"
run: build
@./bin/meta-x.exe --help

Expand Down

0 comments on commit ccb201b

Please sign in to comment.