Skip to content

Commit

Permalink
use ic-wasm 0.5.0; optimize to O3
Browse files Browse the repository at this point in the history
  • Loading branch information
crusso committed Sep 17, 2023
1 parent 5fd2146 commit 19cc36b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion utils.mk
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 19cc36b

Please sign in to comment.