diff --git a/.github/workflows/build-wasm.yml b/.github/workflows/build-wasm.yml index 7627360cef..fa449a9345 100644 --- a/.github/workflows/build-wasm.yml +++ b/.github/workflows/build-wasm.yml @@ -38,7 +38,7 @@ jobs: with: chain: ${{ github.event.inputs.chain }}-parachain runtime_dir: runtime/${{ github.event.inputs.chain }} - tag: "1.73.0" + profile: production - name: Summary run: | diff --git a/.github/workflows/create-release-draft.yml b/.github/workflows/create-release-draft.yml index 4ff0315f74..2e032b5f47 100644 --- a/.github/workflows/create-release-draft.yml +++ b/.github/workflows/create-release-draft.yml @@ -96,7 +96,7 @@ jobs: with: chain: ${{ matrix.chain }}-parachain runtime_dir: runtime/${{ matrix.chain }} - tag: "1.73.0" + profile: production - name: Summary run: | diff --git a/Makefile b/Makefile index 779cfdff9c..204a003413 100644 --- a/Makefile +++ b/Makefile @@ -42,14 +42,6 @@ build-runtime-litentry: build-runtime-rococo: cargo build --locked -p $(call pkgid, rococo-parachain-runtime) --release -.PHONY: srtool-build-wasm-litentry ## Build litentry wasm with srtools -srtool-build-wasm-litentry: - @./scripts/build-wasm.sh litentry - -.PHONY: srtool-build-wasm-rococo ## Build rococo wasm with srtools -srtool-build-wasm-rococo: - @./scripts/build-wasm.sh rococo - .PHONY: build-docker-release ## Build docker image using cargo profile `release` build-docker-release: @./scripts/build-docker.sh release latest diff --git a/scripts/build-wasm.sh b/scripts/build-wasm.sh deleted file mode 100755 index 7ce646481f..0000000000 --- a/scripts/build-wasm.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash -set -eo pipefail - -function usage() { - echo "Usage: $0 litentry [srtool image]" - echo "default: $0 litentry paritytech/srtool" -} - -[ $# -lt 1 ] && (usage; exit 1) - -ROOTDIR=$(git rev-parse --show-toplevel) -cd "$ROOTDIR" - -CHAIN=$1 -SRTOOL_IMAGE=${2:-paritytech/srtool} - -case "$1" in - litentry|rococo) ;; - *) usage; exit 1 ;; -esac - -echo "build $CHAIN-parachain-runtime using $SRTOOL_IMAGE" - -# install / update the srtool-cli -cargo install --git https://github.com/chevdor/srtool-cli - -# build the runtime -srtool -i "$SRTOOL_IMAGE" build -p $CHAIN-parachain-runtime -r runtime/$CHAIN - -echo "============================" -echo "Done, the wasms are under runtime/target/srtool/release/wbuild/$CHAIN-parachain-runtime/" diff --git a/scripts/bump-code-versions.sh b/scripts/bump-code-versions.sh deleted file mode 100755 index 143054b95e..0000000000 --- a/scripts/bump-code-versions.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash -set -eo pipefail - -ROOTDIR=$(git rev-parse --show-toplevel) -cd "$ROOTDIR" - -function usage() { - echo "Usage: $0 from to" - echo " eg: $0 0.9.11 0.9.12" -} - -[ $# -ne 2 ] && (usage; exit 1) - -echo "bumping codes from v$1 to v$2 ..." - -find . -name 'Cargo.toml' | grep -v target | while read -r f; do - sed -i '' "s/polkadot-v$1/polkadot-v$2/g" "$f" - sed -i '' "s/release-v$1/release-v$2/g" "$f" -done - -echo "done"