generated from dymensionxyz/rollapp
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed5c69b
commit 48f5e56
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |