-
Notifications
You must be signed in to change notification settings - Fork 27
49 lines (42 loc) · 1.44 KB
/
publish-srtool-wasm.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
43
44
45
46
47
48
49
name: Srtool Wasm Publish
on:
workflow_dispatch:
push:
tags: ["v*.*.*"]
branches: [srtool-action-fix]
jobs:
srtool:
runs-on: ubuntu-latest
strategy:
matrix:
chain: ["testnet", "mainnet"]
steps:
- uses: actions/checkout@v3
- name: Srtool build
if: matrix.chain == 'mainnet'
id: srtool_build
uses: chevdor/[email protected]
with:
chain: ${{ matrix.chain }}
runtime_dir: runtime/${{ matrix.chain }}
package: tangle-runtime
- name: Srtool build testnet
if: matrix.chain == 'testnet'
uses: chevdor/[email protected]
with:
chain: ${{ matrix.chain }}
runtime_dir: runtime/${{ matrix.chain }}
package: tangle-testnet-runtime
- name: Summary
run: |
echo '${{ steps.srtool_build.outputs.json }}' | jq . > ${{ matrix.chain }}-srtool-digest.json
cat ${{ matrix.chain }}-srtool-digest.json
echo "Runtime location: ${{ steps.srtool_build.outputs.wasm }}"
- name: Upload ${{ matrix.chain }} wasm to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.srtool_build.outputs.compact.compressed.wasm }}
asset_name: tangle-${{ matrix.features }}-srtool-compact.compressed.wasm
tag: ${{ github.ref }}
overwrite: true