File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -117,15 +117,12 @@ build_aar() {
117117 # Use java unit test as sanity check
118118 ANDROID_HOME=" ${ANDROID_SDK:-/ opt/ android/ sdk} " ./gradlew :executorch_android:testDebugUnitTest
119119 popd
120- cp extension/android/executorch_android/build/outputs/aar/executorch_android-debug.aar " ${BUILD_AAR_DIR} /executorch.aar"
120+ if [ ! -z $BUILD_AAR_DIR ]; then
121+ cp extension/android/executorch_android/build/outputs/aar/executorch_android-debug.aar " ${BUILD_AAR_DIR} /executorch.aar"
122+ fi
121123}
122124
123125main () {
124- if [[ -z " ${BUILD_AAR_DIR:- } " ]]; then
125- BUILD_AAR_DIR=" $( mktemp -d) "
126- fi
127- export BUILD_AAR_DIR
128- mkdir -p $BUILD_AAR_DIR
129126 if [ -z " $ANDROID_ABIS " ]; then
130127 ANDROID_ABIS=(" arm64-v8a" " x86_64" )
131128 fi
You can’t perform that action at this time.
0 commit comments