From 7312facb86082dc96663b4c6d8d952286242b6ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Colin=20Axn=C3=A9r?= <25233464+colin-axner@users.noreply.github.com> Date: Mon, 14 Oct 2024 12:23:29 +0200 Subject: [PATCH] fix: test docker build with libwasm args --- .github/workflows/e2e-test-workflow-call.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-test-workflow-call.yml b/.github/workflows/e2e-test-workflow-call.yml index 9302c82446f..796f79d7b94 100644 --- a/.github/workflows/e2e-test-workflow-call.yml +++ b/.github/workflows/e2e-test-workflow-call.yml @@ -114,7 +114,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - if: ${{ inputs.build-and-push-docker-image }} + if: ${{ inputs.build-and-push-docker-image }} + - name: Install dependencies + if: ${{ inputs.build-and-push-docker-image-wasm }} + run: make python-install-deps + + - name: Determine Build arguments + if: ${{ inputs.build-and-push-docker-image-wasm }} + id: build-args + run: | + echo "version=$(scripts/get-libwasm-version.py --get-version)" >> $GITHUB_OUTPUT + echo "checksum=$(scripts/get-libwasm-version.py --get-checksum)" >> $GITHUB_OUTPUT + - name: Log in to the Container registry if: ${{ inputs.build-and-push-docker-image }} uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 @@ -139,6 +150,8 @@ jobs: tags: ${{ steps.meta.outputs.tags }} build-args: | IBC_GO_VERSION=${{ github.ref_name }} + LIBWASM_VERSION=${{ steps.build-args.outputs.version }} + LIBWASM_CHECKSUM=${{ steps.build-args.outputs.checksum }} docker-build-wasm: runs-on: ubuntu-latest @@ -313,4 +326,4 @@ jobs: with: name: '${{ matrix.entrypoint }}-${{ matrix.test }}' path: e2e/diagnostics - retention-days: 5 \ No newline at end of file + retention-days: 5