Skip to content

Commit

Permalink
Build RollApp with custome Dymint
Browse files Browse the repository at this point in the history
  • Loading branch information
anhductn2001 committed Jan 9, 2025
1 parent ed5c69b commit 48f5e56
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build_image_with_dymint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build RollApp with Dymint

on:
workflow_call: # Makes this workflow reusable
inputs:
commit_hash:
description: "Commit hash for updating dymint version"
required: true
type: string

jobs:
build-wasm-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Update dymint module version
run: |
echo "Updating dymint to version ${{ inputs.commit_hash }}"
go mod edit -require github.com/dymensionxyz/dymint@${{ inputs.commit_hash }}
go mod tidy
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build RollApp WASM Image
run: |
docker buildx build \
--file Dockerfile \
--target rollapp-wasm \
--platform linux/amd64 \
--output type=docker,dest=/tmp/rollapp-wasm.tar \
--tag ghcr.io/dymensionxyz/rollapp-wasm:e2e .
- name: Upload WASM artifact
uses: actions/upload-artifact@v3
with:
name: rollapp-wasm
path: /tmp/rollapp-wasm.tar

0 comments on commit 48f5e56

Please sign in to comment.