diff --git a/ci/check_runtime_requirements.sh b/ci/check_runtime_requirements.sh index a4452e2..244e3c1 100755 --- a/ci/check_runtime_requirements.sh +++ b/ci/check_runtime_requirements.sh @@ -46,6 +46,14 @@ if [ "${tag_runtime}" != "${runtime}" ]; then fn_die "ERROR: Runtime in the tag (${tag_runtime}) does not match the expected runtime (${runtime}). Exiting ..." fi +if [[ "${runtime}" = "zkverify" && -z "${version_ext}" ]]; then + log_info "INFO: checking that zkverify and volta production release tags point to the same commit..." + volta_tag="rt-volta-${version}" + if [ "$(git_tag_commit "${github_tag}")" != "$(git_tag_commit "${volta_tag}")" ]; then + fn_die "ERROR: commit pointed to by zkverify tag (${github_tag}) does not match commit of volta tag (${volta_tag}). Exiting..." + fi +fi + # Checking if it is a release build if git branch -r --contains "${github_tag}" | grep -xqE ". origin\/${release_branch}\/rt-${runtime}\/${version_str}$"; then IS_A_RELEASE="true" diff --git a/ci/common.sh b/ci/common.sh index 3de65ae..f489dbd 100644 --- a/ci/common.sh +++ b/ci/common.sh @@ -147,3 +147,8 @@ check_signed_tag() { IS_A_RELEASE="false" fi } + +function git_tag_commit { + local tag="$1" + git rev-list -n 1 "${tag}" +} \ No newline at end of file