Skip to content

Commit 156bef2

Browse files
committed
Upload the share libraries
1 parent e2762de commit 156bef2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/android.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ concurrency:
2121
jobs:
2222
test-demo-android:
2323
name: test-demo-android
24-
uses: pytorch/test-infra/.github/workflows/linux_job.yml@support-custom-artifact-upload
24+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
2525
strategy:
2626
matrix:
2727
include:
@@ -51,6 +51,8 @@ jobs:
5151
# Copy the app and its test suite to S3
5252
cp examples/demo-apps/android/LlamaDemo/app/build/outputs/apk/debug/*.apk artifacts-to-be-uploaded/
5353
cp examples/demo-apps/android/LlamaDemo/app/build/outputs/apk/androidTest/debug/*.apk artifacts-to-be-uploaded/
54+
# Also copy the share libraries
55+
cp cmake-android-out/lib/*.a artifacts-to-be-uploaded/
5456
5557
# Upload the app and its test suite to S3 so that they can be downloaded by the test job
5658
upload-artifacts:
@@ -75,10 +77,10 @@ jobs:
7577
with:
7678
s3-bucket: gha-artifacts
7779
s3-prefix: |
78-
${{ github.repository }}/${{ github.run_id }}/${{ github.run_attempt }}/artifact
80+
${{ github.repository }}/${{ github.run_id }}/artifact
7981
retention-days: 14
8082
if-no-files-found: ignore
81-
path: ${{ runner.temp }}/artifacts/**/*.apk
83+
path: ${{ runner.temp }}/artifacts/
8284

8385
# Let's see how expensive this job is, we might want to tone it down by running it periodically
8486
test-llama-app:
@@ -97,8 +99,8 @@ jobs:
9799
# This is the custom Android device pool that only includes Samsung Galaxy S2x
98100
device-pool-arn: arn:aws:devicefarm:us-west-2:308535385114:devicepool:02a2cf0f-6d9b-45ee-ba1a-a086587469e6/e59f866a-30aa-4aa1-87b7-4510e5820dfa
99101
# Uploaded to S3 from the previous job, the name of the app comes from the project itself
100-
android-app-archive: https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/${{ github.run_attempt }}/artifact/app-debug.apk
101-
android-test-archive: https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/${{ github.run_attempt }}/artifact/app-debug-androidTest.apk
102+
android-app-archive: https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifact/app-debug.apk
103+
android-test-archive: https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifact/app-debug-androidTest.apk
102104
# The test spec can be downloaded from https://ossci-assets.s3.amazonaws.com/android-llama2-device-farm-test-spec.yml
103105
test-spec: arn:aws:devicefarm:us-west-2:308535385114:upload:02a2cf0f-6d9b-45ee-ba1a-a086587469e6/414cb54d-4d83-4576-8317-93244e4dc50e
104106
# The exported llama2 model and its tokenizer, can be downloaded from https://ossci-assets.s3.amazonaws.com/executorch-android-llama2-7b.zip.

0 commit comments

Comments
 (0)