Skip to content

Commit

Permalink
fix: Build go1.22 on alpine3.18 to avoid wasm cgo crash
Browse files Browse the repository at this point in the history
  • Loading branch information
minniux committed Jan 3, 2025
1 parent bd5af38 commit 37498c2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/terra2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
10 changes: 10 additions & 0 deletions chains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37498c2

Please sign in to comment.