-
Notifications
You must be signed in to change notification settings - Fork 47
42 lines (40 loc) · 1.28 KB
/
srtool.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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@v2
with:
name: ${{ matrix.chain }}-runtime-${{ github.sha }}
path: |
${{ steps.srtool_build.outputs.wasm }}
${{ matrix.chain }}-srtool-digest.json