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() {
117
117
# Use java unit test as sanity check
118
118
ANDROID_HOME=" ${ANDROID_SDK:-/ opt/ android/ sdk} " ./gradlew :executorch_android:testDebugUnitTest
119
119
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
121
123
}
122
124
123
125
main () {
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
129
126
if [ -z " $ANDROID_ABIS " ]; then
130
127
ANDROID_ABIS=(" arm64-v8a" " x86_64" )
131
128
fi
You can’t perform that action at this time.
0 commit comments