Skip to content

Commit 747b776

Browse files
committed
Try Runtime CI
1 parent af84146 commit 747b776

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/try-runtime.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Try Runtime
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
permissions:
8+
# Necessary to comment on the pull requests.
9+
pull-requests: write
10+
11+
env:
12+
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
13+
CARGO_TERM_COLOR: always
14+
15+
RUST_BACKTRACE: full
16+
17+
jobs:
18+
try-runtime:
19+
if: >
20+
github.event.issue.pull_request &&
21+
contains(github.event.comment.body, '/bot try-runtime')
22+
runs-on: ubuntu-latest
23+
strategy:
24+
matrix:
25+
# Add the runtime name and URI here.
26+
runtime:
27+
- name: darwinia-runtime
28+
uri: wss://rpc.darwinia.network
29+
- name: crab-runtime
30+
uri: ws://g1.crab2.darwinia.network:9944
31+
steps:
32+
- name: Fetch latest code
33+
uses: actions/checkout@v4
34+
- name: Try-Runtime
35+
# It is recommended to use a specific version of the action in production.
36+
#
37+
# For example:
38+
# uses: hack-ink/polkadot-runtime-releaser/action/try-runtime@vX.Y.Z
39+
uses: hack-ink/polkadot-runtime-releaser/action/try-runtime@v0.2.0
40+
with:
41+
# The target runtime to build.
42+
#
43+
# For example, `polkadot-runtime` or `staging-kusama-runtime`.
44+
runtime: ${{ matrix.runtime.name }}
45+
# The features to enable for this try-runtime build.
46+
features: try-runtime
47+
# Rust toolchain version to build the runtime.
48+
toolchain-ver: 1.81.0
49+
# Try-Runtime CLI version.
50+
try-runtime-ver: 0.8.0
51+
# Whether to skip enforcing that the new runtime `spec_version` is greater or equal to the existing `spec_version`.
52+
disable-spec-version-check: ${{ contains(github.event.comment.body, '--disable-spec-version-check') }}
53+
# Whether to disable migration idempotency checks.
54+
disable-idempotency-checks: ${{ contains(github.event.comment.body, '--disable-idempotency-checks') }}
55+
# The URI of the node to connect to fetch the state.
56+
uri: ${{ matrix.runtime.uri }}

0 commit comments

Comments
 (0)