Skip to content

Commit f165b3f

Browse files
authored
Changes related to OVERRIDE_PACKAGE_VERSION in aarch64 builds (#1520)
1 parent f4e05bc commit f165b3f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

aarch64_linux/aarch64_ci_build.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ set -eux -o pipefail
44
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
55
source $SCRIPTPATH/aarch64_ci_setup.sh
66

7+
tagged_version() {
8+
GIT_DESCRIBE="git --git-dir /pytorch/.git describe --tags --match v[0-9]*.[0-9]*.[0-9]*"
9+
if ${GIT_DESCRIBE} --exact >/dev/null; then
10+
${GIT_DESCRIBE}
11+
else
12+
return 1
13+
fi
14+
}
15+
16+
if tagged_version >/dev/null; then
17+
export OVERRIDE_PACKAGE_VERSION="$(tagged_version | sed -e 's/^v//' -e 's/-.*$//')"
18+
fi
19+
720
###############################################################################
821
# Run aarch64 builder python
922
###############################################################################

0 commit comments

Comments
 (0)