From 15f5eabc076079a190d7878ed1aba5394efde399 Mon Sep 17 00:00:00 2001 From: x1unix <9203548+x1unix@users.noreply.github.com> Date: Sun, 2 Feb 2025 02:57:06 -0500 Subject: [PATCH 1/2] fix(arm): add llvm-mingw headers --- Dockerfile | 2 +- scripts/docker-entrypoint.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f7776e3..eff126e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,7 @@ RUN apt update &&\ COPY --chmod=0755 scripts/docker-entrypoint.sh /usr/bin/docker-entrypoint.sh COPY --chmod=0755 scripts/install-llvm-mingw64.sh /tmp/install-llvm-mingw64.sh COPY --from=builder /tmp/llvm-mingw64 /tmp/llvm-mingw64 -RUN /tmp/install-llvm-mingw64.sh /tmp/llvm-mingw64 +RUN /tmp/install-llvm-mingw64.sh /tmp/llvm-mingw64 && rm -rf /tmp/* ENV PATH=/go/bin:$PATH \ CGO_ENABLED=1 \ GOOS=windows diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh index 0d55d58..45bd184 100755 --- a/scripts/docker-entrypoint.sh +++ b/scripts/docker-entrypoint.sh @@ -21,6 +21,7 @@ arm64) export CC_FOR_TARGET=aarch64-w64-mingw32-gcc export CXX=aarch64-w64-mingw32-g++ export CC=aarch64-w64-mingw32-gcc + export CGO_FLAGS="$CGO_FLAGS -I/usr/generic-w64-mingw32/include" ;; *) echo "Unsupported GOARCH variable value '$GOARCH'. Please set GOARCH environment variable to 'amd64', 'arm64' or '386'" From 6ce56d72eb17d9c1a8806e34dbca1834584a16a7 Mon Sep 17 00:00:00 2001 From: x1unix <9203548+x1unix@users.noreply.github.com> Date: Sun, 2 Feb 2025 03:01:56 -0500 Subject: [PATCH 2/2] feat: bump llvm-mingw to 20250114 --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d3e77a..7b190d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,9 @@ on: release: types: - created +env: + LLVM_MINGW64_VER: 20250114 + jobs: build: name: Build image @@ -52,6 +55,7 @@ jobs: labels: ${{ steps.meta.outputs.labels }} build-args: | GO_VERSION=${{ env.GO_VERSION }} + LLVM_MINGW64_VER=${{ env.LLVM_MINGW64_VER }} push: true - name: Print image digest run: echo ${{ steps.docker_build.outputs.digest }}