We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5eaecb commit fb343a9Copy full SHA for fb343a9
.github/workflows/release.yml
@@ -26,8 +26,8 @@ jobs:
26
run: git clone https://luajit.org/git/luajit-2.0.git && cd luajit-2.0 && git checkout v2.1 && make CCOPT="-static -fPIC" BUILDMODE="static" && sudo make install && sudo ldconfig
27
28
- name: Build
29
- #run: go build -ldflags "-s -w" -o heplify *.go
30
- run: CGO_ENABLED=1 GOOS=linux CGO_LDFLAGS="-lm -ldl" go build -a -ldflags '-extldflags "-static"' -tags netgo -installsuffix netgo -o heplify *.go
+ run: CGO_ENABLED=1 GOOS=linux go build -a --ldflags '-linkmode external -extldflags "-static -s -w"' -o heplify .
+ # run: CGO_ENABLED=1 GOOS=linux CGO_LDFLAGS="-lm -ldl" go build -a -ldflags '-extldflags "-static"' -tags netgo -installsuffix netgo -o heplify *.go
31
32
- name: Upload
33
uses: skx/github-action-publish-binaries@master
0 commit comments