chore: bump version to 4.4.25 and fix CGO_CFLAGS for cross-compilation

Update version to 4.4.25 in version.txt and pkg/obioptions/version.go.

Fix CGO_CFLAGS in release.yml by replacing generic '-I/usr/include' with architecture-specific paths (x86_64-linux-gnu and aarch64-linux-gnu) to ensure correct header inclusion during cross-compilation on Linux.
This commit is contained in:
Eric Coissac
2026-03-13 19:24:26 +01:00
parent fdd972bbd2
commit afc9ffda85
3 changed files with 5 additions and 3 deletions

View File

@@ -32,10 +32,12 @@ jobs:
goos: linux goos: linux
goarch: amd64 goarch: amd64
output_name: linux_amd64 output_name: linux_amd64
cgo_cflags: "-I/usr/include/x86_64-linux-gnu -I/usr/include"
- os: ubuntu-24.04-arm - os: ubuntu-24.04-arm
goos: linux goos: linux
goarch: arm64 goarch: arm64
output_name: linux_arm64 output_name: linux_arm64
cgo_cflags: "-I/usr/include/aarch64-linux-gnu -I/usr/include"
- os: macos-15-intel - os: macos-15-intel
goos: darwin goos: darwin
goarch: amd64 goarch: amd64
@@ -81,7 +83,7 @@ jobs:
GOARCH: ${{ matrix.goarch }} GOARCH: ${{ matrix.goarch }}
VERSION: ${{ steps.get_version.outputs.version }} VERSION: ${{ steps.get_version.outputs.version }}
CC: ${{ matrix.goos == 'linux' && 'musl-gcc' || '' }} CC: ${{ matrix.goos == 'linux' && 'musl-gcc' || '' }}
CGO_CFLAGS: ${{ matrix.goos == 'linux' && '-I/usr/include' || '' }} CGO_CFLAGS: ${{ matrix.cgo_cflags || '' }}
run: | run: |
if [ "$GOOS" = "linux" ]; then if [ "$GOOS" = "linux" ]; then
make LDFLAGS='-linkmode=external -extldflags=-static' obitools make LDFLAGS='-linkmode=external -extldflags=-static' obitools

View File

@@ -3,7 +3,7 @@ package obioptions
// Version is automatically updated by the Makefile from version.txt // Version is automatically updated by the Makefile from version.txt
// The patch number (third digit) is incremented on each push to the repository // The patch number (third digit) is incremented on each push to the repository
var _Version = "Release 4.4.24" var _Version = "Release 4.4.25"
// Version returns the version of the obitools package. // Version returns the version of the obitools package.
// //

View File

@@ -1 +1 @@
4.4.24 4.4.25