Skip to content

Commit

Permalink
Changes related to OVERRIDE_PACKAGE_VERSION in aarch64 builds (#1520) (
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman authored Sep 6, 2023
1 parent 20173e0 commit b4814f5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions aarch64_linux/aarch64_ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ set -eux -o pipefail
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
source $SCRIPTPATH/aarch64_ci_setup.sh

tagged_version() {
GIT_DESCRIBE="git --git-dir /pytorch/.git describe --tags --match v[0-9]*.[0-9]*.[0-9]*"
if ${GIT_DESCRIBE} --exact >/dev/null; then
${GIT_DESCRIBE}
else
return 1
fi
}

if tagged_version >/dev/null; then
export OVERRIDE_PACKAGE_VERSION="$(tagged_version | sed -e 's/^v//' -e 's/-.*$//')"
fi

###############################################################################
# Run aarch64 builder python
###############################################################################
Expand Down

0 comments on commit b4814f5

Please sign in to comment.