Skip to content

Commit

Permalink
Merge pull request #37 from x1unix/fix/35-fix-arm
Browse files Browse the repository at this point in the history
fix(arm64): pass includes
  • Loading branch information
x1unix authored Feb 2, 2025
2 parents 257865a + 6ce56d7 commit e09a5ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
release:
types:
- created
env:
LLVM_MINGW64_VER: 20250114

jobs:
build:
name: Build image
Expand Down Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions scripts/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down

0 comments on commit e09a5ed

Please sign in to comment.