|
76 | 76 | env:
|
77 | 77 | REGISTRY: ghcr.io
|
78 | 78 | IMAGE_NAME: ibc-go-simd
|
| 79 | + IMAGE_NAME_WASM: ibc-go-wasm-simd |
79 | 80 |
|
80 | 81 | jobs:
|
81 | 82 | # test-details exists to provide an easy way to see the inputs for the e2e test.
|
@@ -129,6 +130,56 @@ jobs:
|
129 | 130 | build-args: |
|
130 | 131 | IBC_GO_VERSION=${{ github.ref_name }}
|
131 | 132 |
|
| 133 | + docker-build-wasm: |
| 134 | + runs-on: ubuntu-latest |
| 135 | + steps: |
| 136 | + - uses: actions/checkout@v4 |
| 137 | + if: ${{ inputs.build-and-push-docker-image }} |
| 138 | + |
| 139 | + - uses: actions/setup-python@v4 |
| 140 | + if: ${{ inputs.build-and-push-docker-image }} |
| 141 | + with: |
| 142 | + python-version: '3.10' |
| 143 | + |
| 144 | + - name: Install dependencies |
| 145 | + if: ${{ inputs.build-and-push-docker-image }} |
| 146 | + run: make python-install-deps |
| 147 | + |
| 148 | + - name: Determine Build arguments |
| 149 | + if: ${{ inputs.build-and-push-docker-image }} |
| 150 | + id: build-args |
| 151 | + run: | |
| 152 | + echo "version=$(scripts/get-libwasm-version.py --get-version)" >> $GITHUB_OUTPUT |
| 153 | + echo "checksum=$(scripts/get-libwasm-version.py --get-checksum)" >> $GITHUB_OUTPUT |
| 154 | +
|
| 155 | + - name: Log in to the Container registry |
| 156 | + if: ${{ inputs.build-and-push-docker-image }} |
| 157 | + uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d |
| 158 | + with: |
| 159 | + registry: ${{ env.REGISTRY }} |
| 160 | + username: ${{ github.actor }} |
| 161 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 162 | + |
| 163 | + - name: Extract metadata (tags, labels) for Docker |
| 164 | + if: ${{ inputs.build-and-push-docker-image }} |
| 165 | + id: meta |
| 166 | + uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 |
| 167 | + with: |
| 168 | + images: ${{ env.REGISTRY }}/cosmos/${{ env.IMAGE_NAME_WASM }} |
| 169 | + |
| 170 | + - name: Build and push Docker image |
| 171 | + if: ${{ inputs.build-and-push-docker-image }} |
| 172 | + uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 |
| 173 | + with: |
| 174 | + context: . |
| 175 | + push: true |
| 176 | + tags: ${{ steps.meta.outputs.tags }} |
| 177 | + file: modules/light-clients/08-wasm/Dockerfile |
| 178 | + build-args: | |
| 179 | + LIBWASM_VERSION=${{ steps.build-args.outputs.version }} |
| 180 | + LIBWASM_CHECKSUM=${{ steps.build-args.outputs.checksum }} |
| 181 | +
|
| 182 | +
|
132 | 183 | # dynamically build a matrix of test/test suite pairs to run.
|
133 | 184 | # this job runs a go tool located at cmd/build_test_matrix/main.go.
|
134 | 185 | # it walks the e2e/test directory in order to locate all test suite / test name
|
@@ -160,6 +211,7 @@ jobs:
|
160 | 211 | needs:
|
161 | 212 | - build-test-matrix
|
162 | 213 | - docker-build
|
| 214 | + - docker-build-wasm |
163 | 215 | env:
|
164 | 216 | CHAIN_IMAGE: '${{ inputs.chain-image }}'
|
165 | 217 | CHAIN_A_TAG: '${{ inputs.chain-a-tag }}'
|
|
0 commit comments