Invalidate Proposals After Multsig Change (#1726) #130
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |