diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 846f7d881..5ea652b76 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,7 @@ name: Build and publish on: push: tags: 'v*' + workflow_dispatch: jobs: check: @@ -25,16 +26,26 @@ jobs: version: 3.20.1 repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: Build node + - name: Build runtime run: | - cargo build --release --package node-subspace-runtime - export SHA256SUM=$(sha256sum target/release/wbuild/node-subspace-runtime/node_subspace_runtime.compact.compressed.wasm) - echo $SHA256SUM - touch $SHA256SUM + cargo build --release --timings --package node-subspace-runtime + + export SHA256SUM=$(sha256sum target/release/wbuild/node-subspace-runtime/node_subspace_runtime.compact.compressed.wasm | cut -d ' ' -f1) + echo Hash of compact and compressed WASM: $SHA256SUM + + mkdir out + mv target/release/wbuild/node-subspace-runtime/node_subspace_runtime.compact.compressed.wasm out/ + touch out/$SHA256SUM - uses: actions/upload-artifact@v4 with: - name: - path: target/release/wbuild/node-subspace-runtime/ + name: node_subspace_runtime.compact.compressed + path: out/ if-no-files-found: error overwrite: true + + - uses: actions/upload-artifact@v4 + with: + name: node-subspace-runtime-timings + path: target/cargo-timings/cargo-timing.html + overwrite: true