Try-Runtime #9
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: Try Runtime | |
on: | |
issue_comment: | |
types: [created] | |
permissions: | |
# Necessary to comment on the pull requests. | |
pull-requests: write | |
env: | |
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: full | |
jobs: | |
try-runtime: | |
if: > | |
github.event.issue.pull_request && | |
contains(github.event.comment.body, '/bot try-runtime') | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# Add the runtime name and URI here. | |
runtime: | |
- name: polkadot-runtime | |
uri: wss://polkadot.dotters.network | |
- name: staging-kusama-runtime | |
uri: wss://kusama.dotters.network | |
steps: | |
- name: Fetch latest code | |
uses: actions/checkout@v4 | |
- name: Try-Runtime | |
# It is recommended to use a specific version of the action in production. | |
# | |
# For example: | |
# uses: hack-ink/polkadot-runtime-releaser/action/[email protected] | |
uses: hack-ink/polkadot-runtime-releaser/action/try-runtime@main | |
with: | |
# The target runtime to build. | |
# | |
# For example, `polkadot-runtime` or `staging-kusama-runtime`. | |
runtime: ${{ matrix.runtime.name }} | |
# The features to enable for this try-runtime build. | |
features: try-runtime | |
# Rust toolchain version to build the runtime. | |
toolchain-ver: 1.81.0 | |
# Try-Runtime CLI version. | |
try-runtime-ver: 0.8.0 | |
# Whether to skip enforcing that the new runtime `spec_version` is greater or equal to the existing `spec_version`. | |
disable-spec-version-check: ${{ contains(github.event.comment.body, '--disable-spec-version-check') }} | |
# Whether to disable migration idempotency checks. | |
disable-idempotency-checks: ${{ contains(github.event.comment.body, '--disable-idempotency-checks') }} | |
# The URI of the node to connect to fetch the state. | |
uri: ${{ matrix.runtime.uri }} |