File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff 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
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
You can’t perform that action at this time.
0 commit comments