-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate runtime wasm on master and release (#606)
* release v0.6.7 * srtool actions * srtool actions * try empty string * try if else * try if else * fix wasm build * cleanup
- Loading branch information
Showing
4 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Srtool build Wasm | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
push: | ||
branches: [main] | ||
|
||
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: 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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Srtool Wasm Publish | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
push: | ||
tags: ["v*.*.*"] | ||
|
||
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.wasm }} | ||
asset_name: tangle-${{ matrix.features }}-srtool-wasm | ||
tag: ${{ github.ref }} | ||
overwrite: true |
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
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