From 59d7ceeee07bbbb6eb4b91ab4b51758827f9520d Mon Sep 17 00:00:00 2001 From: kent-3 <100624004+kent-3@users.noreply.github.com> Date: Thu, 29 Aug 2024 15:12:13 -0400 Subject: [PATCH] install latest version of Binaryen older version did not support sign-ext feature? --- .github/workflows/Secret_gateway_tests.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Secret_gateway_tests.yml b/.github/workflows/Secret_gateway_tests.yml index c8c5c5c..1eca92a 100644 --- a/.github/workflows/Secret_gateway_tests.yml +++ b/.github/workflows/Secret_gateway_tests.yml @@ -93,8 +93,17 @@ jobs: target: wasm32-unknown-unknown - name: Install dependencies run: npm --prefix tests/ install - - name: Install wasm-opt - run: sudo apt update && sudo apt install -y binaryen clang + # - name: Install wasm-opt + # run: sudo apt update && sudo apt install -y binaryen clang + - name: Install latest Binaryen + run: | + BINARYEN_VERSION=version_118 + wget https://github.com/WebAssembly/binaryen/releases/download/${BINARYEN_VERSION}/binaryen-${BINARYEN_VERSION}-x86_64-linux.tar.gz + tar -xzf binaryen-${BINARYEN_VERSION}-x86_64-linux.tar.gz + sudo mv binaryen-${BINARYEN_VERSION} /usr/local/binaryen + echo "/usr/local/binaryen/bin" >> $GITHUB_PATH + - name: Verify installation + run: wasm-opt --version - name: Build wasm contract run: make build-mainnet - name: Run integration tests