Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): Build RollApp with custom Dymint #443

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
build-wasm-image:
build-evm-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 EVM Image
run: |
docker buildx build \
--file Dockerfile \
--target rollapp-evm \
--platform linux/amd64 \
--output type=docker,dest=/tmp/rollapp-evm.tar \
--tag ghcr.io/dymensionxyz/rollapp-evm:e2e .

- name: Upload EVM artifact
uses: actions/upload-artifact@v3
with:
name: rollapp-evm
path: /tmp/rollapp-evm.tar
Loading