Skip to content

Commit

Permalink
for test
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Sep 24, 2024
1 parent 7fac63d commit b842634
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/taiko-client--docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
with:
context: .
file: packages/taiko-client/Dockerfile
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
10 changes: 3 additions & 7 deletions packages/taiko-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ COPY packages/taiko-client/ packages/taiko-client/

WORKDIR /build/packages/taiko-client

RUN echo "TARGETOS=${TARGETOS}, TARGETARCH=${TARGETARCH}" && \
if [ "$TARGETARCH" = "amd64" ]; then \
apt-get install -y g++-x86-64-linux-gnu libc6-dev-amd64-cross; \
CGO_ENABLED=1 CC=x86_64-linux-gnu-gcc GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build; \
else \
CGO_ENABLED=1 GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build; \
fi
RUN CGO_ENABLED=1 CC=x86_64-linux-gnu-gcc GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build
#RUN CGO_ENABLED=1 GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build


FROM alpine:latest

Expand Down

0 comments on commit b842634

Please sign in to comment.