From a32746a05895ef79578d005e7b110452243f5dc7 Mon Sep 17 00:00:00 2001 From: Fredrik Simonsson Date: Tue, 21 Nov 2023 09:05:18 +0900 Subject: [PATCH 1/2] Support more tryruntime cmd line options closes CHA-394 --- action.yml | 7 ++++++- entrypoint.sh | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 54d9149..50b304d 100644 --- a/action.yml +++ b/action.yml @@ -16,6 +16,10 @@ inputs: checks: description: 'Checks to run' default: 'all' + options: + description: 'try-runtime command line options' + default: '' + required: false runs: using: 'docker' image: 'Dockerfile' @@ -23,4 +27,5 @@ runs: - ${{ inputs.url }} - ${{ inputs.snap }} - ${{ inputs.runtime }} - - ${{ inputs.checks }} \ No newline at end of file + - ${{ inputs.checks }} + - ${{ inputs.options }} diff --git a/entrypoint.sh b/entrypoint.sh index 5878608..61cbfdf 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,6 +4,7 @@ url=$1 snap=$2 runtime=$3 checks=$4 +shift 4 # if snap does not exists, take it if [ ! -f "$snap" ]; then @@ -11,4 +12,4 @@ if [ ! -f "$snap" ]; then try-runtime --runtime existing create-snapshot --uri $url $snap fi -try-runtime --runtime $runtime on-runtime-upgrade --checks=$checks snap --path $snap \ No newline at end of file +try-runtime --runtime $runtime on-runtime-upgrade --checks=$checks $* snap --path $snap From 7112ec7f813f3eea8ccfef3f646445e96962c694 Mon Sep 17 00:00:00 2001 From: Fredrik Simonsson Date: Mon, 4 Dec 2023 09:55:31 +0900 Subject: [PATCH 2/2] Add support for 5.1.0 --- base/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/Dockerfile b/base/Dockerfile index aa82a16..a361195 100644 --- a/base/Dockerfile +++ b/base/Dockerfile @@ -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