From b7b8255ab27dc0d85570b5deed697f4c90079661 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Fri, 25 Oct 2024 13:35:35 +1000 Subject: [PATCH] Add wasm size to output (#1386) ### What Add wasm size to output ### Why So that it's easy to look at PRs to see how they change the size of the test vectors when built. --- .github/workflows/rust.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 427c2fd78..063cbc8b4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -113,6 +113,12 @@ jobs: run: rm -fr **/test_snapshots - name: Build for wasm run: cargo-hack hack build --target wasm32-unknown-unknown --profile release + - name: Wasm Size + run: | + cd target/wasm32-unknown-unknown/release/ && \ + for i in *.wasm ; do \ + ls -l "$i"; \ + done - if: "!matrix.sys.cdylib-cross-compile-workaround" name: Build for native run: cargo-hack hack --feature-powerset --exclude-features docs build --target ${{ matrix.sys.target }}