From c61bf6f5a28914b24a12c5dd42c3c3528c17c974 Mon Sep 17 00:00:00 2001 From: haroldsphinx Date: Fri, 4 Feb 2022 18:49:02 +0100 Subject: [PATCH 1/2] Update simnode script --- .maintain/run_simnode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.maintain/run_simnode.sh b/.maintain/run_simnode.sh index f92aeabba1c..e23293618f2 100755 --- a/.maintain/run_simnode.sh +++ b/.maintain/run_simnode.sh @@ -18,7 +18,7 @@ VERSIONS_FILES=( /home/runner/.cargo/bin/rustup target add wasm32-unknown-unknown --toolchain nightly /home/runner/.cargo/bin/cargo build --release -p simnode sudo chown -R runner:runner target/release/simnode && sudo chmod +x target/release/simnode -sudo chown -R runner:runner /tmp/db +sudo mkkdir -p /tmp/db && sudo chown -R runner:runner /tmp/db YDATE=$(date -d yesterday +'%m-%d-%Y') run_simnode() { From 3e4e0f4a224c36bc7b60089dd155d66a65796558 Mon Sep 17 00:00:00 2001 From: haroldsphinx Date: Sat, 5 Feb 2022 11:09:48 +0100 Subject: [PATCH 2/2] Update simonde script --- .github/workflows/release-pipeline.yml | 5 +++++ .maintain/run_simnode.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-pipeline.yml b/.github/workflows/release-pipeline.yml index 0880763e3d3..e803295a45d 100644 --- a/.github/workflows/release-pipeline.yml +++ b/.github/workflows/release-pipeline.yml @@ -32,6 +32,11 @@ jobs: cargo install --git https://github.com/chevdor/srtool-cli cargo install --locked --git https://github.com/chevdor/subwasm --tag v0.16.1 + - name: Set env + run: | + echo "RELEASE_VERSION=$(git tag --sort=committerdate | grep -E '^v[0-9]' | tail -1 )" >> $GITHUB_ENV + make version + - name: Runtime wasm builds id: runtime_release env: diff --git a/.maintain/run_simnode.sh b/.maintain/run_simnode.sh index a26fbf5a037..9aecc18c9d2 100755 --- a/.maintain/run_simnode.sh +++ b/.maintain/run_simnode.sh @@ -28,7 +28,7 @@ run_simnode() { GS_BUCKET="$CHAIN-data-store" sudo gsutil cp gs://$GS_BUCKET/"$FILENAME" . sudo unzip -o "$FILENAME" -d /tmp/db - ./target/release/simnode --chain="$CHAIN" --base-path=/tmp/db/ --pruning=archive --execution=wasm + ./target/release/simnode --chain="$CHAIN" --base-path=/tmp/db/var/lib/composable-data/ --pruning=archive --execution=wasm } # shellcheck disable=SC2039