Use -ldflags "-s -w" to strip debug symbols and reduce binary size

This commit is contained in:
Zoltán Papp
2025-11-19 11:51:49 +01:00
parent 05cbead39b
commit b72a786a13

View File

@@ -47,7 +47,7 @@ jobs:
with:
go-version: "1.23.x"
- name: Build Wasm client
run: GOOS=js GOARCH=wasm go build -o netbird.wasm ./client/wasm/cmd
run: GOOS=js GOARCH=wasm go build -o netbird.wasm -ldflags="-s -w" ./client/wasm/cmd
env:
CGO_ENABLED: 0
- name: Check Wasm build size