55# the correct environment for releases.
66# To run locally:
77# ./buildscripts/kokoro/unix.sh
8- # For 32 bit:
9- # ARCH=32 ./buildscripts/kokoro/unix.sh
8+ # For x86 32 arch:
9+ # ARCH=x86_32 ./buildscripts/kokoro/unix.sh
10+ # For aarch64 arch:
11+ # ARCH=aarch_64 ./buildscripts/kokoro/unix.sh
1012
1113# This script assumes `set -e`. Removing it may lead to undefined behavior.
1214set -exu -o pipefail
@@ -23,14 +25,14 @@ cd $(dirname $0)/../..
2325
2426# TODO(zpencer): always make sure we are using Oracle jdk8
2527
26- # ARCH is 64 bit unless otherwise specified.
27- ARCH=" ${ARCH:- 64 } "
28+ # ARCH is x86_64 unless otherwise specified.
29+ ARCH=" ${ARCH:- x86_64 } "
2830
2931ARCH=" $ARCH " buildscripts/make_dependencies.sh
3032
3133# Set properties via flags, do not pollute gradle.properties
3234GRADLE_FLAGS=" ${GRADLE_FLAGS:- } "
33- GRADLE_FLAGS+=" -PtargetArch=x86_ $ARCH "
35+ GRADLE_FLAGS+=" -PtargetArch=$ARCH "
3436GRADLE_FLAGS+=" -Pcheckstyle.ignoreFailures=false"
3537GRADLE_FLAGS+=" -PfailOnWarnings=true"
3638GRADLE_FLAGS+=" -PerrorProne=true"
7072LOCAL_MVN_TEMP=$( mktemp -d)
7173# Note that this disables parallel=true from GRADLE_FLAGS
7274if [[ -z " ${ALL_ARTIFACTS:- } " ]]; then
75+ if [[ $ARCH == " aarch_64" ]]; then
76+ GRADLE_FLAGS+=" -x grpc-compiler:generateTestProto -x grpc-compiler:generateTestLiteProto"
77+ GRADLE_FLAGS+=" -x grpc-compiler:testGolden -x grpc-compiler:testLiteGolden"
78+ GRADLE_FLAGS+=" -x grpc-compiler:testDeprecatedGolden -x grpc-compiler:testDeprecatedLiteGolden"
79+ fi
7380 ./gradlew grpc-compiler:build grpc-compiler:publish $GRADLE_FLAGS \
7481 -Dorg.gradle.parallel=false -PrepositoryDir=$LOCAL_MVN_TEMP
7582else
0 commit comments