From 37498c2a85275fb35ed6e0f0023544b85a29380d Mon Sep 17 00:00:00 2001 From: minniux Date: Fri, 3 Jan 2025 13:47:49 +0400 Subject: [PATCH] fix: Build go1.22 on alpine3.18 to avoid wasm cgo crash --- .github/workflows/terra2.yml | 2 +- chains.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/terra2.yml b/.github/workflows/terra2.yml index 4693d55..0622b14 100644 --- a/.github/workflows/terra2.yml +++ b/.github/workflows/terra2.yml @@ -49,7 +49,7 @@ jobs: - name: Build and push terra Docker image run: | - ./heighliner build -c terra --git-ref ${{ env.VERSION }} + ./heighliner build -c terra --git-ref ${{ env.VERSION }} --alpine-version 3.18 --go-version 1.22 - name: Tag and push Docker image run: | diff --git a/chains.yaml b/chains.yaml index b5ff9af..fd24488 100644 --- a/chains.yaml +++ b/chains.yaml @@ -1263,6 +1263,16 @@ github-organization: phoenix-directive github-repo: core dockerfile: cosmos + pre-build: | + GO_VERSION=1.22.10 + apk update + apk add --no-cache --virtual .build-deps bash gcc musl-dev openssl go + wget -O go.tgz https://golang.org/dl/go${GO_VERSION}.src.tar.gz + tar -C /usr/local -xzf go.tgz + rm go.tgz + cd /usr/local/go/src + ./make.bash + apk del .build-deps build-target: make install binaries: - /go/bin/terrad