From 19cc36b4bd9780a582a11811e2fc8648b00d055b Mon Sep 17 00:00:00 2001 From: Claudio Russo Date: Sun, 17 Sep 2023 03:43:01 +0100 Subject: [PATCH] use ic-wasm 0.5.0; optimize to O3 --- .github/workflows/perf.yml | 6 ++---- utils.mk | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index ef5916d0..6521f8f0 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -15,7 +15,7 @@ jobs: IC_REPL_VERSION: 0.4.1 MOC_ARTIFACT: 927804830 MOC_VERSION: 0.10.0 - IC_WASM_VERSION: 0.4.0 + IC_WASM_VERSION: 0.5.0 steps: - uses: actions/checkout@v3 - name: Checkout out gh-pages report @@ -65,9 +65,7 @@ jobs: cd $(dfx cache show) wget https://github.com/dfinity/motoko/releases/download/$MOC_VERSION/motoko-Linux-x86_64-$MOC_VERSION.tar.gz tar zxvf motoko-Linux-x86_64-$MOC_VERSION.tar.gz - wget https://github.com/dfinity/ic-wasm/releases/download/$IC_WASM_VERSION/ic-wasm-linux64 - cp ./ic-wasm-linux64 /usr/local/bin/ic-wasm - chmod a+x /usr/local/bin/ic-wasm + cargo install --git https://github.com/dfinity/ic-repl.git --branch new-meter - name: Setup system subnet and start dfx run: | mkdir -p $HOME/.config/dfx diff --git a/utils.mk b/utils.mk index c67f3ba2..5742ec84 100644 --- a/utils.mk +++ b/utils.mk @@ -1,5 +1,6 @@ define ic-wasm - echo "No Optimize!" + echo "optimize with ic-wasm O3"; \ + for f in $(1)/*/*.wasm; do ic-wasm -o $$f $$f optimize O3 --keep-name-section; done endef define build_with_mops