From cc6d40c46577c2b9290116e7032ee60f0052984b Mon Sep 17 00:00:00 2001 From: AndreiM Date: Thu, 2 Jan 2025 09:51:29 -0500 Subject: [PATCH] Teest --- .github/workflows/docker-image.yml | 9 ++++++++- player/go.mod | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 61a21eb..bc7dc5b 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -126,7 +126,14 @@ jobs: mkdir -p ../JukaGUI-Trimui cd player echo "Building package..." - # [Your existing script here] + CGO_ENABLED=1 \ + CC="aarch64-linux-gnu-gcc --sysroot=${SYSROOT}" \ + CXX="aarch64-linux-gnu-g++ --sysroot=${SYSROOT}" \ + GOARCH=arm64 \ + GOOS=linux \ + CGO_CFLAGS="-I${SYSROOT}/usr/include -I/usr/aarch64-linux-gnu/include -I/usr/aarch64-linux-gnu/include/SDL2 -I/usr/include/SDL2 -D_REENTRANT" \ + CGO_LDFLAGS="-L${SYSROOT}/usr/lib -L/usr/lib/aarch64-linux-gnu -lSDL2_image -lSDL2_ttf -lSDL2 -lpng -ltiff -lwebp -lfreetype -ljpeg -lz -lbz2 -ldl -lpthread -lm" \ + go build -tags static -ldflags "-s -w -extldflags '-static'" -o ../JukaGUI-Trimui/JukaGUI ./ echo "Build completed." - name: Package Artifacts diff --git a/player/go.mod b/player/go.mod index 6caa06f..cb2ce27 100644 --- a/player/go.mod +++ b/player/go.mod @@ -1,5 +1,5 @@ module jukagui/JukaGUI -go 1.22.6 +go 1.23 require github.com/veandco/go-sdl2 v0.4.40