Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed May 14, 2024
1 parent a35d294 commit 43cff47
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/android-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ jobs:
working-directory: binding/android/PicoLLM
# ********* remove after release *************

- name: Uninstall previous app
run: adb shell pm uninstall ai.picovoice.picollm.testapp || true

- name: Uninstall previous tests
run: adb shell pm uninstall ai.picovoice.picollm.testapp.test || true

- name: Download resource files
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.bin/latest/phi2-290.bin -o phi2-290.bin

Expand Down Expand Up @@ -85,14 +91,20 @@ jobs:
working-directory: binding/android/PicoLLM
# ********* remove after release *************

- name: Uninstall previous app
run: adb shell pm uninstall ai.picovoice.picollm.testapp || true

- name: Uninstall previous tests
run: adb shell pm uninstall ai.picovoice.picollm.testapp.test || true

- name: Download resource files
run: curl http://${{secrets.PV_CICD_RES_SERVER_AUTHORITY}}/github/picollm/res/phi2-290.bin/latest/phi2-290.bin -o phi2-290.bin

- name: Make Android dir
run: ~/Android/Sdk/platform-tools/adb shell mkdir -p /sdcard/Android/data/ai.picovoice.picollm.testapp/files/external
run: adb shell mkdir -p /sdcard/Android/data/ai.picovoice.picollm.testapp/files/external

- name: Copy resource files
run: ~/Android/Sdk/platform-tools/adb push --sync phi2-290.bin /sdcard/Android/data/ai.picovoice.picollm.testapp/files/external/phi2-290.bin
run: adb push --sync phi2-290.bin /sdcard/Android/data/ai.picovoice.picollm.testapp/files/external/phi2-290.bin

- name: Inject AccessKey
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties
Expand Down
3 changes: 2 additions & 1 deletion binding/android/PicoLLMTestApp/picollm-test-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ android {

buildTypes {
debug {
signingConfig signingConfigs.release
signingConfig signingConfigs.debug
testBuildType "debug"
}
release {
minifyEnabled false
Expand Down

0 comments on commit 43cff47

Please sign in to comment.