fix: add CGO_CFLAGS for static Linux builds and update go.work.sum

- Add CGO_CFLAGS environment variable to release workflow for Linux builds
- Update go.work.sum with new golang.org/x/net v0.38.0 entry
- Remove obsolete logs archive file
This commit is contained in:
Eric Coissac
2026-03-13 19:24:15 +01:00
parent 76f595e1fe
commit fdd972bbd2
3 changed files with 2 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ jobs:
GOARCH: ${{ matrix.goarch }}
VERSION: ${{ steps.get_version.outputs.version }}
CC: ${{ matrix.goos == 'linux' && 'musl-gcc' || '' }}
CGO_CFLAGS: ${{ matrix.goos == 'linux' && '-I/usr/include' || '' }}
run: |
if [ "$GOOS" = "linux" ]; then
make LDFLAGS='-linkmode=external -extldflags=-static' obitools