Skip to content

Run all benchmarks (#1749) #145

Run all benchmarks (#1749)

Run all benchmarks (#1749) #145

Workflow file for this run

name: Srtool build
on:
push:
branches:
- 'mainnet'
- 'testnet'
- 'staging'
jobs:
srtool:
runs-on: ubuntu-latest
strategy:
matrix:
chain: ["testnet", "mainnet"]
steps:
- uses: actions/checkout@v3
- name: Use rust-toolchain.toml
run: |
echo "Use our rust-toolchain.toml"
cp rust-toolchain.toml pallets/runtime/${{ matrix.chain }}/
- name: Srtool build
id: srtool_build
uses: chevdor/[email protected]
with:
chain: ${{ matrix.chain }}
package: polymesh-runtime-${{ matrix.chain }}
runtime_dir: pallets/runtime/${{ matrix.chain }}
- name: Summary
run: |
echo Summary:
echo '${{ steps.srtool_build.outputs.json }}' | jq . > ${{ matrix.chain }}-srtool-digest.json
cat ${{ matrix.chain }}-srtool-digest.json
echo - prop: ${{ steps.srtool_build.outputs.proposal_hash }}
echo "Runtime location: ${{ steps.srtool_build.outputs.wasm }}"
- name: Archive Runtime
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.chain }}-runtime-${{ github.sha }}
path: |
${{ steps.srtool_build.outputs.wasm }}
${{ steps.srtool_build.outputs.wasm_compressed }}
${{ matrix.chain }}-srtool-digest.json