Skip to content

Commit 79d532f

Browse files
committed
Use curl instead
1 parent 157623b commit 79d532f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/android-perf.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ jobs:
135135
set -eux
136136
137137
# The model will be exported in the next step to this S3 path
138-
MODEL_PATH="s3://gha-artifacts/${{ github.repository }}/${{ github.run_id }}/artifacts/${{ matrix.model }}_${{ matrix.delegate }}/model.zip"
138+
MODEL_PATH="https://gha-artifacts.s3.amazonaws.com/${{ github.repository }}/${{ github.run_id }}/artifacts/${{ matrix.model }}_${{ matrix.delegate }}/model.zip"
139139
# We could write a script to properly use jinja here, but there is only one variable,
140140
# so let's just sed it
141141
sed -i -e 's,{{ model_path }},'"${MODEL_PATH}"',g' android-llm-device-farm-test-spec.yml.j2

extension/benchmark/android/benchmark/android-llm-device-farm-test-spec.yml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ phases:
99
pre_test:
1010
commands:
1111
# Download the model from S3
12-
- aws s3 cp {{ model_path }} model.zip
12+
- curl -s --fail '{{ model_path }}' -o model.zip
1313
- unzip model.zip && ls -la
1414

15-
# Copy the extracted model to sdcard
15+
# Copy the model to sdcard
1616
- adb -s $DEVICEFARM_DEVICE_UDID push *.bin /sdcard
1717
- adb -s $DEVICEFARM_DEVICE_UDID push *.pte /sdcard
1818

0 commit comments

Comments
 (0)