Skip to content

Commit 690e34c

Browse files
committed
release workflow binary build debug
1 parent 301ec7a commit 690e34c

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,24 @@ jobs:
3131
- name: Checkout code
3232
uses: actions/checkout@v4
3333

34-
- name: Verify Go
34+
- name: Dump GO env
3535
run: |
36-
go version
36+
echo "--- all GO* vars ---"
37+
env | grep '^GO'
38+
echo "--- go env ---"
3739
go env
3840
3941
- name: Install go deps
4042
run: go get .
4143

4244
- name: Build Linux binaries
4345
env:
44-
GOFLAGS: "-buildvcs=false"
46+
CGO_ENABLED: "1"
47+
CC: gcc
4548
GOOS: linux
49+
GOFLAGS: "-buildvcs=false"
50+
GO_LDFLAGS: "-linkmode external"
51+
CGO_LDFLAGS: "-g -O2"
4652
run: |
4753
mkdir -p dist
4854
for arch in amd64; do
@@ -52,6 +58,12 @@ jobs:
5258
.
5359
done
5460
61+
- name: Inspect binary
62+
run: |
63+
file dist/parallax-${{ github.ref_name }}-linux-amd64
64+
readelf -l dist/parallax-${{ github.ref_name }}-linux-amd64 | grep interpreter || true
65+
ldd dist/parallax-${{ github.ref_name }}-linux-amd64 || echo "static :/"
66+
5567
- name: Create GitHub Release
5668
id: create_release
5769
uses: actions/create-release@v1

0 commit comments

Comments
 (0)