Skip to content

Commit 20db7f5

Browse files
kirklandsignfacebook-github-bot
authored andcommitted
Skip uploading some unused artifacts
Summary: Stuff like .a, .so, and some apk are never used Differential Revision: D70665176
1 parent 6170804 commit 20db7f5

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

.github/workflows/_android.yml

-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ jobs:
7676
curl -O https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/llm_demo/app-debug.apk
7777
curl -O https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/llm_demo/app-debug-androidTest.apk
7878
curl -O https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/fp32-xnnpack-custom/model.zip
79-
curl -o android-test-debug.apk https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/library_test_dir/executorch-debug.apk
8079
curl -o android-test-debug-androidTest.apk https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/library_test_dir/executorch-debug-androidTest.apk
8180
unzip model.zip
8281
mv *.pte model.pte

build/build_android_library.sh

-8
Original file line numberDiff line numberDiff line change
@@ -156,24 +156,16 @@ collect_artifacts_to_be_uploaded() {
156156
# Collect the app and its test suite
157157
cp examples/demo-apps/android/LlamaDemo/app/build/outputs/apk/debug/*.apk "${DEMO_APP_DIR}"
158158
cp examples/demo-apps/android/LlamaDemo/app/build/outputs/apk/androidTest/debug/*.apk "${DEMO_APP_DIR}"
159-
# Collect all ABI specific libraries
160-
for ANDROID_ABI in "${ANDROID_ABIS[@]}"; do
161-
mkdir -p "${DEMO_APP_DIR}/${ANDROID_ABI}"
162-
cp cmake-out-android-${ANDROID_ABI}/lib/*.a "${DEMO_APP_DIR}/${ANDROID_ABI}/"
163-
cp cmake-out-android-${ANDROID_ABI}/extension/android/*.so "${DEMO_APP_DIR}/${ANDROID_ABI}/"
164-
done
165159
# Collect JAR and AAR
166160
cp extension/android/build/libs/executorch.jar "${DEMO_APP_DIR}"
167161
find "${BUILD_AAR_DIR}/" -name 'executorch*.aar' -exec cp {} "${DEMO_APP_DIR}" \;
168162
# Collect MiniBench APK
169163
MINIBENCH_APP_DIR="${ARTIFACTS_DIR_NAME}/minibench"
170164
mkdir -p "${MINIBENCH_APP_DIR}"
171165
cp extension/benchmark/android/benchmark/app/build/outputs/apk/debug/*.apk "${MINIBENCH_APP_DIR}"
172-
cp extension/benchmark/android/benchmark/app/build/outputs/apk/androidTest/debug/*.apk "${MINIBENCH_APP_DIR}"
173166
# Collect Java library test
174167
JAVA_LIBRARY_TEST_DIR="${ARTIFACTS_DIR_NAME}/library_test_dir"
175168
mkdir -p "${JAVA_LIBRARY_TEST_DIR}"
176-
cp extension/android_test/build/outputs/apk/debug/*.apk "${JAVA_LIBRARY_TEST_DIR}"
177169
cp extension/android_test/build/outputs/apk/androidTest/debug/*.apk "${JAVA_LIBRARY_TEST_DIR}"
178170
}
179171

0 commit comments

Comments
 (0)