Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch2 #5

Merged
merged 2 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ inputs:
checks:
description: 'Checks to run'
default: 'all'
options:
description: 'try-runtime command line options'
default: ''
required: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.url }}
- ${{ inputs.snap }}
- ${{ inputs.runtime }}
- ${{ inputs.checks }}
- ${{ inputs.checks }}
- ${{ inputs.options }}
3 changes: 2 additions & 1 deletion base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ RUN apt-get update && \
apt-get -y install --no-install-recommends cmake pkg-config libssl-dev git clang build-essential protobuf-compiler
RUN rustup update stable && \
rustup target add wasm32-unknown-unknown && \
rustup target add wasm32-unknown-unknown --toolchain stable
rustup target add wasm32-unknown-unknown --toolchain stable && \
rustup component add rust-src
RUN cargo install --git https://github.com/paritytech/try-runtime-cli --tag ${VERSION} --locked


Expand Down
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ url=$1
snap=$2
runtime=$3
checks=$4
shift 4

# if snap does not exists, take it
if [ ! -f "$snap" ]; then
echo "Snapshot does not exist, taking it now..."
try-runtime --runtime existing create-snapshot --uri $url $snap
fi

try-runtime --runtime $runtime on-runtime-upgrade --checks=$checks snap --path $snap
try-runtime --runtime $runtime on-runtime-upgrade --checks=$checks $* snap --path $snap