Skip to content

Commit 433fa58

Browse files
authored
android.yml: implement d8 -> dx fix
1 parent a982b6f commit 433fa58

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/android.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,14 @@ jobs:
131131
pip install -r scripts/build_scripts/python_requirements.txt
132132
python scripts/restore_secrets.py --passphrase "${{ secrets.TEST_SECRET }}"
133133
134-
- name: Denver's DEBUG
134+
- name: "Rename d8 to dx (fixes java.lang.NumberFormatException: Not a number: 33x)"
135135
shell: bash
136136
run: |
137-
set +e
138-
set -xv
139-
env | grep ANDROID
140-
echo "Searching for d8 files in $ANDROID_HOME/build-tools"
141-
for D8_FILE in `find "$ANDROID_HOME"/build-tools -name 'd8*'`; do
142-
echo "$D8_FILE"
143-
done
137+
for D8_FILE in `find "$ANDROID_HOME/build-tools" -type f -name 'd8*'`; do
138+
DX_FILE="$(echo "$D8_FILE" | sed 's/d8/dx/')"
139+
echo "cp $D8_FILE $DX_FILE"
140+
cp "$D8_FILE" "$DX_FILE"
141+
done
144142
145143
- name: Download C++ SDK
146144
shell: bash

0 commit comments

Comments
 (0)