Skip to content

Commit

Permalink
actions: strip produced binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
akshettrj committed Jun 30, 2024
1 parent ad1e4dd commit fca7de2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
go-version: '1.22'

- name: Build
run: GOARCH=amd64 GOOS=linux go build -o watgbridge_linux_amd64 .
run: GOARCH=amd64 GOOS=linux go build -ldflags '-s -w' -o watgbridge_linux_amd64 .

- name: Get Project Version
id: get_version
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
go-version: '1.22'

- name: Build
run: CGO_ENABLED=1 CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ GOARCH=arm64 GOOS=linux go build -o watgbridge_linux_aarch64 .
run: CGO_ENABLED=1 CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ GOARCH=arm64 GOOS=linux go build -ldflags '-s -w' -o watgbridge_linux_aarch64 .

- name: Get Project Version
id: get_version
Expand Down

0 comments on commit fca7de2

Please sign in to comment.