generated from hack-ink/rust-initializer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d577787
commit c5f22b5
Showing
21 changed files
with
468 additions
and
367 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,28 @@ | ||
name: "Polkadot Runtime Releaser Build Action" | ||
description: "Polkadot Runtime Releaser Build Action." | ||
branding: | ||
icon: "check-circle" | ||
color: "blue" | ||
|
||
inputs: | ||
runtime: | ||
description: "Target runtime crate to build." | ||
required: true | ||
features: | ||
description: "Features to enable for the runtime crate." | ||
required: false | ||
default: "" | ||
toolchain-version: | ||
description: "Rust toolchain version to use." | ||
required: false | ||
default: "stable" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup Polkadot Runtime Releaser | ||
shell: bash | ||
run: curl -L https://github.com/hack-ink/polkadot-runtime-releaser/releases/download/v0.1.0/polkadot-runtime-releaser.tar.gz | tar xz && chmod +x prr && mv prr /usr/local/bin/prr | ||
- name: Build | ||
shell: bash | ||
run: prr build ${{ inputs.runtime }} -f ${{ inputs.features }} -t ${{ inputs.toolchain-version }} |
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,30 @@ | ||
name: "Polkadot Runtime Releaser Build Action" | ||
description: "Polkadot Runtime Releaser Build Action." | ||
branding: | ||
icon: "check-circle" | ||
color: "blue" | ||
|
||
inputs: | ||
runtime: | ||
description: "Target runtime crate to build." | ||
required: true | ||
features: | ||
description: "Features to enable for the runtime crate." | ||
required: false | ||
default: "" | ||
toolchain-version: | ||
description: "Rust toolchain version to use." | ||
required: false | ||
default: "stable" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Fetch latest code | ||
uses: actions/checkout@v4 | ||
- name: Build runtime | ||
uses: ../build/action.yml | ||
with: | ||
runtime: ${{ inputs.runtime }} | ||
features: ${{ inputs.features }} | ||
toolchain-version: ${{ inputs.toolchain-version }} |
Empty file.
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,53 @@ | ||
name: "Polkadot Runtime Releaser Try Runtime Action" | ||
description: "Polkadot Runtime Releaser Try Runtime Action." | ||
branding: | ||
icon: "check-circle" | ||
color: "blue" | ||
|
||
inputs: | ||
runtime: | ||
description: "Target runtime crate to build." | ||
required: true | ||
features: | ||
description: "Features to enable for the runtime crate." | ||
required: false | ||
default: "" | ||
toolchain-version: | ||
description: "Rust toolchain version to use." | ||
required: false | ||
default: "stable" | ||
try-runtime-version: | ||
description: "Try Runtime CLI version to use." | ||
required: false | ||
default: "0.8.0" | ||
uri: | ||
description: "Node URI to use." | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup try runtime CLI | ||
shell: bash | ||
run: curl -L https://github.com/paritytech/try-runtime-cli/releases/download/v${{ inputs.try-runtime-version }}/try-runtime-x86_64-unknown-linux-musl -o try-runtime && chmod +x try-runtime && mv try-runtime /usr/local/bin/try-runtime | ||
- name: Build runtime | ||
uses: ../build/action.yml | ||
with: | ||
runtime: ${{ inputs.runtime }} | ||
features: ${{ inputs.features }} | ||
toolchain-version: ${{ inputs.toolchain-version }} | ||
- name: Try runtime | ||
shell: bash | ||
run: try-runtime --runtime $(find polkadot-runtime-releaser-output -name "*.compact.compressed.wasm") on-runtime-upgrade live -u ${{ inputs.uri }} 2>&1 | tee output.log | ||
- name: Comment | ||
uses: peter-evans/create-or-update-comment@v4 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
<details> | ||
<summary>Try Runtime Output for ${{ inputs.runtime }}</summary> | ||
``` | ||
${{ cat output.log }} | ||
``` | ||
</details> |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.