From 5cb3439d024d5760e04634d2d1b81f49b181a746 Mon Sep 17 00:00:00 2001 From: Hitenjain14 Date: Mon, 9 Sep 2024 19:48:40 +0530 Subject: [PATCH 1/2] update go to 1.23.1 for wasm --- wasmsdk/jsbridge/zcnworker.js.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasmsdk/jsbridge/zcnworker.js.tpl b/wasmsdk/jsbridge/zcnworker.js.tpl index 2f4d3d4ac..d8c357546 100644 --- a/wasmsdk/jsbridge/zcnworker.js.tpl +++ b/wasmsdk/jsbridge/zcnworker.js.tpl @@ -1,4 +1,4 @@ -importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.21.5/misc/wasm/wasm_exec.js','https://cdn.jsdelivr.net/gh/herumi/bls-wasm@v1.1.1/browser/bls.js'); +importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.23.1/misc/wasm/wasm_exec.js','https://cdn.jsdelivr.net/gh/herumi/bls-wasm@v1.1.1/browser/bls.js'); const go = new Go(); go.argv = {{.ArgsToJS}} From ba9c6582f22082a28e4cb6523223f6188ea360c2 Mon Sep 17 00:00:00 2001 From: shahnawaz-creator <117025384+shahnawaz-creator@users.noreply.github.com> Date: Mon, 9 Sep 2024 19:56:24 +0530 Subject: [PATCH 2/2] Updated go version to 1.23.1 for building wasm in build-sdks.yml --- .github/workflows/build-sdks.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-sdks.yml b/.github/workflows/build-sdks.yml index 91d194090..7fabfa089 100644 --- a/.github/workflows/build-sdks.yml +++ b/.github/workflows/build-sdks.yml @@ -335,10 +335,10 @@ jobs: name: Build-wasm runs-on: [self-hosted, arc-runner] steps: - - name: Set up Go 1.x + - name: Set up Go 1.23.1 uses: actions/setup-go@v3 with: - go-version: 1.21.5 + go-version: 1.23.1 - name: Checkout uses: actions/checkout@v2 @@ -349,7 +349,7 @@ jobs: sudo apt-get -y install build-essential nghttp2 libnghttp2-dev libssl-dev wget - name: Build - run: docker run --rm -v $PWD:/gosdk -w /gosdk golang:1.21.5 make wasm-build + run: docker run --rm -v $PWD:/gosdk -w /gosdk golang:1.23.1 make wasm-build - name: 'Upload Artifact' uses: actions/upload-artifact@v3