Skip to content

Commit

Permalink
fix: failed builds due to wasmvm library filename (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
minniux authored and felichita committed Aug 25, 2024
1 parent e6e9b9d commit 85e9c77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/cosmoshub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,11 @@ jobs:
- name: Manually pull the base Docker image
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
docker pull ghcr.io/p2p-org/cosmos-heighliner:cosmoshub-v18.1.0
- name: Pull gaiad binary
run: |
cd temp/
wget https://github.com/cosmos/gaia/releases/download/v19.1.0/gaiad-v19.1.0-linux-amd64
docker pull ghcr.io/p2p-org/cosmos-heighliner:infra-toolkit-${{ env.INFRA_TOOLKIT }}
- name: Build and push cosmoshub Docker image
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
cd temp/
docker build -t gaia:${{ env.VERSION }} .
./heighliner build -c gaia --git-ref ${{ env.VERSION }}
- name: Tag and push Docker image
run: |
Expand Down
2 changes: 2 additions & 0 deletions dockerfile/cosmos/native.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ RUN set -eux;\
WASMVM_REPO=$(echo $WASMVM_VERSION | awk '{print $1}');\
WASMVM_VERS=$(echo $WASMVM_VERSION | awk '{print $2}');\
wget -O /lib/libwasmvm_muslc.a https://${WASMVM_REPO}/releases/download/${WASMVM_VERS}/libwasmvm_muslc.$(uname -m).a;\
cp /lib/libwasmvm_muslc.a /lib/libwasmvm_muslc.$(uname -m).a;\
cp /lib/libwasmvm_muslc.a /lib/libwasmvm.$(uname -m).a;\
fi;\
export CGO_ENABLED=1 LDFLAGS='-linkmode external -extldflags "-static"';\
if [ ! -z "$PRE_BUILD" ]; then sh -c "${PRE_BUILD}"; fi;\
Expand Down
7 changes: 0 additions & 7 deletions temp/Dockerfile

This file was deleted.

0 comments on commit 85e9c77

Please sign in to comment.