From 0271fdbb8b620f2d88850d3f7e8775b3a5eaca4b Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Sat, 16 Sep 2023 16:53:25 -0400 Subject: [PATCH] Upload srtool report from wasm build --- .github/workflows/build-wasm.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-wasm.yml b/.github/workflows/build-wasm.yml index 3d24f991c0..26e2b6e269 100644 --- a/.github/workflows/build-wasm.yml +++ b/.github/workflows/build-wasm.yml @@ -79,7 +79,15 @@ jobs: ls -la /cargo-home/ du -sh /cargo-home/* echo "---- RUNNING BUILD ----" - srtool/build --save + /srtool/build --save + + - id: set_runtime + run: echo "RUNTIME=$(echo "${{ matrix.package }}" | sed -e "s/-runtime$//")" >> $GITHUB_ENV + - name: upload srtool report + uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 #v3.1.3 + with: + name: srtool-wasm-report.txt + path: ./runtime/${{ env.RUNTIME }}/target/srtool/srtool-wasm-report-*.txt - id: 'auth' # if: ${{ github.ref == 'refs/heads/main' }}