You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Dockerfile
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,8 @@ RUN cp /build/target/x86_64-unknown-linux-gnu/debug/librust_module.so /build/amd
31
31
32
32
##### Build the Go library #####
33
33
34
+
# ABI version updated to v1.37.0 (4dae397a7c9ff0238d318d57ea656ce8b3fbff595787dcd7ee2ff5b79c9fe10f)
35
+
34
36
# We use zig to cross-compile the Go library for both x86_64 and aarch64 architectures.
35
37
FROM --platform=$BUILDPLATFORM golang:1.24.2 AS go_builder
36
38
# Install zig.
@@ -42,12 +44,18 @@ RUN curl -L "https://ziglang.org/download/${ZIG_VERSION}/zig-linux-$(uname -m)-$
42
44
RUN mkdir /build
43
45
COPY ./go /build
44
46
WORKDIR /build
45
-
RUN CC="zig cc -target aarch64-linux-gnu" CXX="zig c++ -target aarch64-linux-gnu" CGO_ENABLED=1 GOARCH=arm64 go build -buildmode=c-shared -o /build/arm64_libgo_module.so .
46
-
RUN CC="zig cc -target x86_64-linux-gnu" CXX="zig c++ -target x86_64-linux-gnu" CGO_ENABLED=1 GOARCH=amd64 go build -buildmode=c-shared -o /build/amd64_libgo_module.so .
47
+
# Show ABI version for debugging
48
+
RUN grep "var version = append" /build/gosdk/abi.go || true
49
+
RUN CC="zig cc -target aarch64-linux-gnu" CXX="zig c++ -target aarch64-linux-gnu" CGO_ENABLED=1 GOARCH=arm64 go build -buildmode=c-shared -o /build/arm64_libgo_module.so . && \
50
+
ls -la /build/arm64_libgo_module.so
51
+
RUN CC="zig cc -target x86_64-linux-gnu" CXX="zig c++ -target x86_64-linux-gnu" CGO_ENABLED=1 GOARCH=amd64 go build -buildmode=c-shared -o /build/amd64_libgo_module.so . && \
0 commit comments