@@ -21,7 +21,7 @@ concurrency:
21
21
jobs :
22
22
test-demo-android :
23
23
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
25
25
strategy :
26
26
matrix :
27
27
include :
51
51
# Copy the app and its test suite to S3
52
52
cp examples/demo-apps/android/LlamaDemo/app/build/outputs/apk/debug/*.apk artifacts-to-be-uploaded/
53
53
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/
54
56
55
57
# Upload the app and its test suite to S3 so that they can be downloaded by the test job
56
58
upload-artifacts :
@@ -75,10 +77,10 @@ jobs:
75
77
with :
76
78
s3-bucket : gha-artifacts
77
79
s3-prefix : |
78
- ${{ github.repository }}/${{ github.run_id }}/${{ github.run_attempt }}/ artifact
80
+ ${{ github.repository }}/${{ github.run_id }}/artifact
79
81
retention-days : 14
80
82
if-no-files-found : ignore
81
- path : ${{ runner.temp }}/artifacts/**/*.apk
83
+ path : ${{ runner.temp }}/artifacts/
82
84
83
85
# Let's see how expensive this job is, we might want to tone it down by running it periodically
84
86
test-llama-app :
97
99
# This is the custom Android device pool that only includes Samsung Galaxy S2x
98
100
device-pool-arn : arn:aws:devicefarm:us-west-2:308535385114:devicepool:02a2cf0f-6d9b-45ee-ba1a-a086587469e6/e59f866a-30aa-4aa1-87b7-4510e5820dfa
99
101
# 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
102
104
# The test spec can be downloaded from https://ossci-assets.s3.amazonaws.com/android-llama2-device-farm-test-spec.yml
103
105
test-spec : arn:aws:devicefarm:us-west-2:308535385114:upload:02a2cf0f-6d9b-45ee-ba1a-a086587469e6/414cb54d-4d83-4576-8317-93244e4dc50e
104
106
# 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