File tree 3 files changed +6
-1
lines changed
3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 5
5
release :
6
6
types :
7
7
- created
8
+ env :
9
+ LLVM_MINGW64_VER : 20250114
10
+
8
11
jobs :
9
12
build :
10
13
name : Build image
52
55
labels : ${{ steps.meta.outputs.labels }}
53
56
build-args : |
54
57
GO_VERSION=${{ env.GO_VERSION }}
58
+ LLVM_MINGW64_VER=${{ env.LLVM_MINGW64_VER }}
55
59
push : true
56
60
- name : Print image digest
57
61
run : echo ${{ steps.docker_build.outputs.digest }}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ RUN apt update &&\
19
19
COPY --chmod=0755 scripts/docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
20
20
COPY --chmod=0755 scripts/install-llvm-mingw64.sh /tmp/install-llvm-mingw64.sh
21
21
COPY --from=builder /tmp/llvm-mingw64 /tmp/llvm-mingw64
22
- RUN /tmp/install-llvm-mingw64.sh /tmp/llvm-mingw64
22
+ RUN /tmp/install-llvm-mingw64.sh /tmp/llvm-mingw64 && rm -rf /tmp/*
23
23
ENV PATH=/go/bin:$PATH \
24
24
CGO_ENABLED=1 \
25
25
GOOS=windows
Original file line number Diff line number Diff line change 21
21
export CC_FOR_TARGET=aarch64-w64-mingw32-gcc
22
22
export CXX=aarch64-w64-mingw32-g++
23
23
export CC=aarch64-w64-mingw32-gcc
24
+ export CGO_FLAGS=" $CGO_FLAGS -I/usr/generic-w64-mingw32/include"
24
25
;;
25
26
* )
26
27
echo " Unsupported GOARCH variable value '$GOARCH '. Please set GOARCH environment variable to 'amd64', 'arm64' or '386'"
You can’t perform that action at this time.
0 commit comments